Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate Animate.css v4 #34

Closed
up-tri opened this issue May 17, 2020 · 1 comment
Closed

migrate Animate.css v4 #34

up-tri opened this issue May 17, 2020 · 1 comment

Comments

@up-tri
Copy link

up-tri commented May 17, 2020

A few days ago, 'Animate.css' was updated to v4 with breaking changes.

https://github.com/animate-css/animate.css/releases/tag/v4.0.0

The difference with v3 are as below:
. add prefix to all classnames.
(fadeIn -> animate__fadeIn, animated -> animate__animated, and more...)

. utility attributes was changed to utility classnames.
(ig. delay attribute was changed to 'animate__delay-2s' class )

I'm trying to implement them now, please just moments. ( When done, I'll make a pull-request. )

@up-tri
Copy link
Author

up-tri commented May 17, 2020

it solved myself, it's very simple...

new WOW({
  animateClass: 'animate__animated'
}).init();
<div class="wow animate__fadeInUp" data-wow-delay="5s">
  ... some contents
</div>

@up-tri up-tri closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant