Giter Club home page Giter Club logo

v-animate-css's Introduction

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

v-animate-css's People

Contributors

artdev-hash avatar coreycoburn avatar dependabot[bot] avatar jofftiquez avatar mahomuri avatar mekdrop avatar warengonzaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

v-animate-css's Issues

Avoid CDN dependencies

Hello.

We are using this beautiful package from an intranet enviroment (no internet access).

This package is using animate.css cdn internally. (internet resource)

image

Unfortunately this behavior make the package useless in this kind of enviroments.

I suggest to include the animate.css files built in to prevent the cdn call to internet.

Or allow the pacakge to inject the animate.css from outside. Like vuetify does with mdi icons.

image

Cheers.

Documentation broken?

Your documentation seems broken on my side. Animations are not triggered. I see this warning in my console.

Uncaught TypeError: Cannot read property 'scrollHeight' of null

Might be related?

issue after install

v-animate-css.js:293 Uncaught TypeError: Cannot read property 'scrollHeight' of null
at n (v-animate-css.js:293)

Programmatic animation?

Is there any way to animate an element programmatically? Ie, from a method within a Vue instance?

Hello, I dared to modify your library

I had the need to modify your library. Thank you very much for the contribution.

Because I needed to pause an infinite loop add the following lines of code

if (!!betweenIteration) { let state = false; setInterval(function () { if (state == false) { el.classList.remove(classes); state = !state; } else { el.classList.add(classes); state = !state; } }, betweenIteration); }

I added these lines in line 188 of the dist/index.js file

not working on vue3

Is this updated to work in vue3? I installed and tried and no error comes up... but the directives doesn't create events.

Site not found

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

https://ossphilippines.github.io/v-animate-css/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.