diff --git a/README.md b/README.md index 793ec78..6f5d4c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# vue2-animate for Vue.js 2.0 +# vue2-animate for Vue.js 2 *Cross-browser CSS3 animation library* @@ -7,43 +7,60 @@ A [Vue.js](http://vuejs.org/ "Vue.js") port of [Animate.css](https://github.com/daneden/animate.css "Animate.css"). For use with Vue's built-in transitions. | [DEMO](https://the-allstars.com/vue2-animate/) -**This is modified version of: https://github.com/haydenbbickerton/vue-animate for Vue 2.0** +**This is modified version of: https://github.com/haydenbbickerton/vue-animate for Vue 2** **Thanks [@pavels-hyuna](https://github.com/pavels-hyuna) for his SCSS version work.** ## Installation -#### HTML + +### HTML + Include the stylesheet: - ```html -
- - - ``` -#### npm - If you're on webpack and using the [css-loader](https://github.com/webpack/css-loader "css loader"), you can use something like this: - ```shell - npm install --save vue2-animate - ``` - ```js - require('vue2-animate/dist/vue2-animate.min.css') - ``` - -#### Sass/Scss +```html + + + +``` + +Include by CDN: + +```html + +``` + +### NPM / Yarn + +If you're on webpack and using the [css-loader](https://github.com/webpack/css-loader "css loader"), you can use something like this: + +```shell +npm install --save vue2-animate + +# OR + +yarn add vue2-animate +``` + +```js +require('vue2-animate/dist/vue2-animate.min.css') +``` + +## SASS/SCSS ```scss $animationDuration: 0.5s; // specify animation duration. Default value: 1s @import "