Need help with vue-anime?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

BenAHammond
159 Stars 8 Forks MIT License 32 Commits 2 Opened issues

Description

A Vue plugin for adding Anime bindings to Vue components

Services available

!
?

Need anything else?

Contributors list

# 199,632
JavaScr...
vuejs2
vue2
Shell
12 commits
# 252,930
JavaScr...
midi
node
Node.js
2 commits
# 349,597
Elixir
koans
Shell
Groovy
2 commits
# 726,357
JavaScr...
2 commits
# 74,426
GraphQL
React
fetch
express...
1 commit
# 683,738
JavaScr...
1 commit

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
html

Also adds this.$anime to your components

js
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 ... */
  },
}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.