Since CSS3 introduced animation (transition and @keyframes, and transform with it), the enthusiasm of the various centaurs is extremely high, and compared to JS animation, it is easier to write (in the absence of the jquery library), At the same time, in most cases, performance also has a strong advantage. Transition and transform relatively simple, in addition to matrix transformation (most people also use not to) outside, other are easy to learn to understand, and the use of @keyframes animation, is simply a designer and engineers of the big kill, about this thing has killed, can refer to the previous Tencent's great God to engage in a CSS3 animation frame number of the scientific calculation method such a thing, contains a calculator, the internal text of the tangled complex, I believe that the general part-time half the front end of the big design or the beginning of the small front-end are difficult to understand ...
And the main problem is, the thing is for the step animation prepared, make a wizard, and then every time to jump one ... In fact, this is not a real CSS animation, not to mention the animation properties of the steps () function can better solve the problem. And all along, there is no good CSS animation generation tool (don't mention muse to me, it needs to read "The tools of Self-cultivation" ...) So what I want to recommend today is this Stylie, a visual tool that automatically generates CSS3 animations.
Introduction to Stylie Operations
After the page is opened it is very simple, the blue grid background, two green Cross in the middle of a yellow line, there is a white ball constantly sliding from the left to the right (also not known as scrolling), the following has a progress bar, the right side has an operator panel.
Picture from Tuts+keyframes tab panel
The first 0ms indicates the information of the starting point, and the second 2000ms indicates the information about the breakpoint at the 2000ms.
2000MS You can click the time to modify it, click the plus sign in the upper-right corner to add a new breakpoint
X and y represent the horizontal and vertical coordinates (in fact, you can also use the mouse to drag the green cross ...);
s represents magnification (default is 1);
RX, RY, RZ, respectively, indicate the rotation of the object along the X, Y, z axes (which axis is which one can fill in the number on the above to try, for the sake of observation for the reason recommended to fill in 180. Of course you can also hold down the shift button, drag, but I think this is very difficult to control ...);
Linear represents a linear ... This column is a custom easing curve (easing curves)
Ease of movement curve
This tool is more abuse the point of the brush is its ease curve function, all the values, all! but! defines easing. Let me say a little bit about its ease:
In and out respectively to represent the entry and end, ease as the name implies that there is a similar "buffer" action, as the acceleration of the car is slowly added up, people running is also slowly stop (the brakes are also very difficult to slow down from high-speed directly to static, there is always a deceleration process).
Quad-x^2 (two-time square curve)
Cubic-x^3 (three-time square curve)
Quart-x^4 (four-time square curve)
Quint-x^5 (five-time square curve)
Sine-sin (x^ (PI/2)) (looks a bit like two square curve, in fact, this function is very wonderful, interested in children's shoes can be viewed here to see [0,3] image ...)
expo-2^ (x-1) (I gave up the name, in short, a very very slow start, very very fast in the late).
Circ-As the name implies is the arc (1/4 Circle, If selected inout is two out of 1/4 circle)
Bounce-The formula is too long to write, is a rebound curve (spring effect, small ball landing)
V10. Back-Bounce Curve
Elastic-Rubber Band curve (with a very short and huge shaking, and then slowly end)
Swing-just like the back series
The back is nothing, the last one for customeasing, this curve can be edited in the Motion tab, often with AI children's shoes may be easier to edit, but do not understand the relationship between the curve and the speed of movement, you can not understand what you are editing ...
It says so many curves ... It actually represents a change in rate (you can place the starting point and end point on the same straight line, not horizontally or vertically, and then change the easing Curves of X and Y, which in essence is no different from the parabola that we drew in our first high school physics class ...). For those of you who want to preview simple and small action, you can put the starting point and end point in a relatively close position, and then change the easing curves observation.
Export Code
After the results are satisfactory, you can click on the CSS and HTML tags to copy the code separately.
CSS tags can be customized for this animation name, and choose Browser compatibility (the default for the consortium, if your home to consider compatibility is actually better not to do (to me is that who, you understand) ... Compatible with mobile phone can be considered on the hook WebKit). Orient generated CSS to means that all the displacement data takes the relative (first frame) displacement or absolute positioning (relative to the upper left corner). The bottom slider, the leftmost is the least code, the right is the highest quality, the smallest code may cause unexpected problems in some cases, but usually nothing happens ...
HTML tags are nothing, you can modify the HTML code to see your custom content effect (the default is only one picture, that is, the white circle ...)
Finally, on the Right Wrench tab, you can choose to save or read your animation.