Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.0 #9

Merged
merged 19 commits into from
May 3, 2024
Merged

Version 2.0.0 #9

merged 19 commits into from
May 3, 2024

Conversation

Applelo
Copy link
Owner

@Applelo Applelo commented Feb 7, 2024

Breaking changes

All Lottie options are now move into lottie attribute to use typings from lottie (and not a version provided by Blottie).

For example, if you have this

<template>
 <Blottie
      class="animation"
      path="https://assets6.lottiefiles.com/packages/lf20_bXGMKilbSf.json"
      :loop="true"
      container-tag="main"
      @ready="onReady"
    >
      <template #loading>
        Loading...
      </template>
    </Blottie>
</template>

This will be change to this

<template>
<Blottie
        class="animation"
        :lottie="{
          loop: true,
          path: 'https://assets6.lottiefiles.com/packages/lf20_bXGMKilbSf.json',
        }"
        container-tag="main"
        @ready="onReady"
        @loop-complete="onLoop"
      >
        <template #loading>
          Loading...
        </template>
      </Blottie>
</template>

What's new

  • Add useBlottie() composable
<script lang="ts" setup>
const el = ref<HTMLElement>()
const { lottie, anim } = useBlottie(
   container, 
   {
       loop: true,
       path: 'https://assets6.lottiefiles.com/packages/lf20_bXGMKilbSf.json',
   }
)
</script>

<template>
<div ref="el"></div>
</template>
  • Rewrite Vue component by using useBlottie composable
  • Update readme
  • Update dependencies
  • Improve typings
  • Update licence to MIT

@Applelo Applelo self-assigned this Feb 7, 2024
@Applelo Applelo changed the title Version 2.0.0 Version 1.2.0 Feb 7, 2024
@Applelo Applelo changed the title Version 1.2.0 Version 2.0.0 Apr 17, 2024
@Applelo Applelo marked this pull request as ready for review May 3, 2024 17:35
@Applelo Applelo merged commit e0478b0 into main May 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant