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

Update animate 4.0 #21

Open
PabloManuel78 opened this issue Jul 2, 2020 · 2 comments
Open

Update animate 4.0 #21

PabloManuel78 opened this issue Jul 2, 2020 · 2 comments

Comments

@PabloManuel78
Copy link

Everything works perfectly with version 0.3.0. This version uses Animate.css version 3.5.1. I wanted to change to version 4.0.0 by removing this line:

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/kissui.scrollanim/0.3.0/scrollanim.min.css">

And replacing it with this:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"/>

Everything seems to be going well, there are no errors and the elements appear and disappear. But the movement is not reproduced.

How can we upgrade to Animate 4.0.0?

@PabloManuel78
Copy link
Author

I see the problem is in the new class names. In version 4.0.0 they start with "animate__", just add this and the CSS library would be independent.

@PabloManuel78
Copy link
Author

Maybe with a little modification it would be worth:

element.element.className += ' animate__animated animate__' + element.event[e].animation;

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