vue-animejs

A simple Vue plugin for binding Anime.js
58,810 173
Install
npm install vue-animejs
Latest Version:2.1.1
Vue:2
License:MIT
Last Updated:Nov 1, 2020
Links: GitHub  ·  npm
Maintainer: bhammond

Vue-Anime

Simple Vue bindings for Anime.js

Install
$ npm install --save vue-animejs
import VueAnime from 'vue-animejs';

Vue.use(VueAnime)
Usage

Adds a simple directive named v-anime that passes all arguments directly to anime.js

<div v-anime="{ rotate: '1turn', backgroundColor: '#FFF', duration: 2000, loop: true }"></div>

Also adds this.$anime to your components

export default {
  name: "my-component",
  data() {
    return {};
  },
  mounted() {
    const targets = this.$el;
    this
      .$anime
      .timeline()
      .add({
        targets,
        translateX: 250,
        easing: 'easeOutExpo',
      })
      .add({
        targets,
        translateX: 250,
        easing: 'easeOutExpo',
      });
      /* ... etc ... */
  },
}

Related Packages

@stevebauman/vue-border-beam

Animated border beam effect for Vue

1,154 15
animated-border-beam-vue3

Animated border beam effect for Vue 3

271 0
@animxyz/vue3

AnimXYZ is a composable animation library that makes your site shine

53,443 2,499
@animxyz/vue

AnimXYZ is a composable animation library that makes your site shine

9,533 2,499

Version History

Version Released License
2.1.1 MIT
2.1.0 MIT
2.0.0 MIT
1.0.2 MIT
1.0.1 MIT