• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    HTML
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The easiest to implement Vue directive for Animate.css

Vue Animate CSS

GitHub forks GitHub Repo stars

v-animate-css

Animate.css for Vue.js 3

If you like this project, please give it a star , and consider following the author :octocat: 😉 .

Vue 2 version is no longer maintained but the code is available here. You can still contribute if you wish so, and we will publish them for Vue 2.

Installation using NPM

npm install @ossph/v-animate-css --save

OR

Installation using YARN

yarn add @ossph/v-animate-css

Or just import this to project without installing

Using CDN

https://unpkg.com/@ossph/v-animate-css/dist/v-animate-css.js

Getting Started

Usage

import Vue from 'vue';
import VAnimateCss from '@ossph/v-animate-css';

Vue.use(VAnimateCss);
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.4/vue.js"></script>
<script src="https://unpkg.com/@ossph/v-animate-css/dist/v-animate-css.js"></script>

<script>
  Vue.use(VAnimateCss.default);
</script>

Injecting Alternative CSS Link (local or CDN)

Related to Issue#33 it make sense to give the user the option to add their own local version of Animate.css instead of relying to the default CDN version of Animate.css within the plugin.

You can do it using the new animateCSSPath option.

import Vue from 'vue';
import VAnimateCss from '@ossph/v-animate-css';

Vue.use(VAnimateCss, { animateCSSPath: './local-animate-css-file.css' });

// You can also use this option to inject a newer version of Animate.css
Vue.use(VAnimateCss, { animateCSSPath: 'cdn-link-to-a-newer-animate-css-version' });

Demo and Docs here.

Made with ❤️ by Joff Tiquez