Skip to content

Releases: Applelo/blottie

v2.0.0

03 May 17:36
e0478b0
Compare
Choose a tag to compare

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

Full Changelog: v1.1.4...v2.0.0

v1.1.4

07 Dec 21:12
d448177
Compare
Choose a tag to compare

What's Changed

  • Update dependencies
  • Update CI to Node 20
  • Use pnpm workspace for demo folder
  • Update antfu/eslint-config

Full Changelog: v1.1.3...v1.1.4

v1.1.3

14 Sep 19:12
ce5028e
Compare
Choose a tag to compare
  • Update dependencies

v1.1.2

06 Aug 13:13
4b94e57
Compare
Choose a tag to compare
  • Update dependencies
  • Fix demo build

v1.1.1

24 May 05:56
63d1bc5
Compare
Choose a tag to compare

v1.1.0

20 Feb 18:25
627bc64
Compare
Choose a tag to compare
  • Add prop before-init allowing to use setLocationHref to fix Safari issue
  • Fix dependencies

v1.0.1

12 Feb 11:51
24cbde2
Compare
Choose a tag to compare
  • Fix typings in package.json
  • Add BlottieExpose to simplify usage of ref
  • Fix CI with Cypress #1

v1.0.0

11 Feb 11:47
4345d92
Compare
Choose a tag to compare
  • Initial release