top js animations code example
Example 1: css animation library
/* Answer to: "css animation library" */
/*
There are an awful lot of libraries that want to help you animate
things on the web. These aren’t really libraries that help you
with the syntax or the technology of animations, but rather are
grab-and-use as-is libraries. Want to apply a class like
“animate-flip-up” and watch an element, uhhh, flip up? These are
the kind of libraries to look at.
1. Animista (personal favourite)
2. Animate.css
3. Tachyons
4. Infinite
5. Motion UI
6. Micron
7. Vivify
9. Hover.css
10. AllAnimationCss3
11. Magic Animations CSS3
12. It's Tuesday
13. CHS
14. ReboundGen
15. CSShake
16. Motion CSS
17. cssanimation.io
18. WickedCSS
19. Woah.css
20. Obnoxious.css
21. Hexa
22. Mimic.css
For more information and direct links to the website of these
libraries, go to:
https://css-tricks.com/css-animation-libraries/
*/
Example 2: animation css
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation: myfirst 5s linear 2s infinite alternate;
}
@keyframes myfirst {
0% {background-color:red; left:0px; top:0px;}
25% {background-color:yellow; left:200px; top:0px;}
50% {background-color:blue; left:200px; top:200px;}
75% {background-color:green; left:0px; top:200px;}
100% {background-color:red; left:0px; top:0px;}
}
</style>
</head>
<body>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
<div><p>you can add text in this box or anithing else like a pictrue</p></div>
</body>
</html>