use the All Animation framework : http://all-animation.github.io/
Just like HTML5, CSS3 also came with several interesting and revolutionary novelties... Among them we have the property Animation. With this rich property, we can produce transitions only with CSS. But you already know that. Even so, the property Animation and also the keyframe method can be bad to manage when we have a lot of animation on the same site. Ai, if there is a framework that helps this work, our life becomes easier. That’s where All Animation CSS3 comes in.
The All Animation CSS3 framework
Quite excited about these rich possibilities that the Animation property offers us, Jeftar Mascarenhas and I decided to create a framework of animations css3, which thank God is giving "some hits", and today I will share with my friends "dev’s ninjas". Its name is All Animation CSS3.
"All ..." What?
The name sounds kind of ironic because All Animation CSS3 (all css3 animations) is nothing more than a framework that brings together rich CSS3 animations for you to use in your academic or commercial project. Contains a set of animations, fun to make your project sexier. Are cross-browser animations that will give more emphasis to your pages like sliders, 3D’s effects and etc...
When to use?
Like any framework, your goal is to streamline the creation process in your day-to-day. If you took on a large project, whose time span is very short and certainly, you would not have time to develop interesting animations... using this framework would be great to gain more "timers".
When not using?
As I mentioned above, All Animation is very good for those with a very high workload and a short time to develop, but if you have extra time to develop your projects, then you can feel free to create your animations at hand.
"Very well, I want to use in my projects"
Where to start:
It is easy to integrate the framework into our project , we will see step by step how to finish it.
Step 1, include the necessary files in the head, so your animations work properly:
<link rel="stylesheet" type="text/css" href="yourpath/all-animation.css" />
<script type="text/javascript" src="yourpath/jquery.js"></script>
Step 2, within the body tag boundaries, put the following html structure:
<div id="animation"></div>
<button class="anny-class">Trigger class, go!</button>
Note: "" is optional because you can also create an animation without needing an activator (because the button works as an animation trigger)
Step 3, you can use the following line of jQuery code, to fire your animation:
$(".anny-class").click(function(){
$("#animation").addClass("journal");
});
Journal is one of the classes that our framework provides for us to use
If you want to add the effect at some time, you can add a timer:
setTimeout(function(){
$("#animation").addClass("journal");
},2000);
Heed:
If you choose to add some more animation to an element that has already undergone another animation of All Animation, or want to restart the animation, you will have to remove the class from the last animation and insert its, ex:
$("#animation").removeClass("journal").addClass("four-rock");
We have several classes in place of the Journal class, let’s see what they are:
Special
dance
Journal
Pulse
Pulse-slow
Jamp
four-rock
Bounce:
enter-up-Bounce
enter-down-Bounce
enter-right-Bounce
enter-left-Bounce
Scale-Bounce
jump-Bounce
Perspective:
Tree-flip-right
Tree-flip
Tree-flip-up
Tree-flip-down
flip-left-Bounce
Rotate-flip
flip-right-Bounce
Fading Entrances:
flip-top
flip-left
flip-right
flip-bottom
Rotate:
Rotate-flip-down
Rotate-down-Bounce
Rotate-out
Agrecives:
flash-bang
bomb
I won’t list them all, because I’m adding more over time
Does anyone else use?
According to Google Animation, in the first month I launched this framework, more than 127 countries used All Animation in their projects
So, to end it...
Below are two links for more information:
http://all-animation.github.io/
https://github.com/clovisdasilvaneto/all-animation
I hope I helped , hugs
How do I stop when I hover the mouse on the button, instead of it stopping the way it was, it stops straight?
– VH Empreendimentos
I edited the answer, I hope it helps you.
– Iron Man