├── .eslintrc.js
├── .gitignore
├── .npmignore
├── README.md
├── babel.config.js
├── demo
├── App.vue
└── main.js
├── dist
├── demo.html
├── vue-anime.common.js
├── vue-anime.umd.js
└── vue-anime.umd.min.js
├── package-lock.json
├── package.json
├── public
├── favicon.ico
└── index.html
├── src
├── anime-mixin.js
├── anime-prop.js
├── index.js
├── is.js
├── vue-anime-group.js
├── vue-anime-timeline.js
└── vue-anime.js
└── vue.config.js
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | 'extends': [
7 | 'plugin:vue/essential',
8 | '@vue/standard'
9 | ],
10 | rules: {
11 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
13 | },
14 | parserOptions: {
15 | parser: 'babel-eslint'
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 |
4 | # local env files
5 | .env.local
6 | .env.*.local
7 |
8 | # Log files
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 |
13 | # Editor directories and files
14 | .idea
15 | .vscode
16 | *.suo
17 | *.ntvs*
18 | *.njsproj
19 | *.sln
20 | *.sw*
21 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | /demo
2 | /public
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-anime
2 | Vue animation with timeline and grouping support using http://animejs.com/
3 |
4 |
5 | ## Usage
6 |
7 | ```sh
8 | npm install vue-anime
9 | ```
10 |
11 | In vue file, first import
12 | ```javascript
13 | import {VueAnime} from 'vue-anime'
14 | import {VueAnimeGroup} from 'vue-anime'
15 | import {VueAnimeTimeLine} from 'vue-anime'
16 | export default {
17 | name: 'app',
18 | components: {
19 | VueAnime,
20 | VueAnimeGroup,
21 | VueAnimeTimeLine
22 | },
23 | }
24 |
25 | ```
26 |
27 | and then use in template
28 |
29 | ```vue
30 | 1 TRANSLATE X
97 | 1-1 TRANSLATE X by input
103 | 2 ANIME GROUP
109 | 3 CSS ANIMATION
118 | 4 Object Animation
123 | 5 SVG ANIMATION
134 |
140 | 6 SPECIFIC PROPERTY PARAMETERS
144 | 7.DURATION FUNCTION
150 | 8 DURATION FUNCTION
161 | 9 KEYFRAMES
177 | 10 Basic timeline
206 | 11 TIMELINE with offsets
213 | 12 TIMELINE property Inheritance
220 | 12 timeline control
240 | 13 Timeline seek
254 | 13 Timeline seek
266 | 14 windmill
278 | 15 Text type in
301 |