The working principle of jQueryAnimation is to change the CSS style of an element from one State to another. The following describes how to implement jQueryAnimation using an example, if you are interested, you can refer to the working principle of jQuery Animation by changing the CSS style of the element from one state to another. The
also integrates color animations, transforms, loops, Easings, class animations, and scrolling animations. All of this, compressed only after 7KB
In short, velocity is the equivalent of combining the Jquery,jquery UI with the CSS transitions.
In addition, from a use point of view, Velocity uses the jquery. Queue () method, with the jquery. Queue () method, and thus with jquery. Animate (),. Fade (),. Fade (),. Delay () Features seamless integration. B
The HTML5 CSS3 allows the front-end wet guys to use simple CSS styles to write the animation effect. Before that, we may think of JavaScript, Flash, java Plug-ins. If JavaScript is used, it is not a bad thing, but if it is written, it is not ideal to force the client to install a third-party plug-in. That is why Google has spared no effort to promote its leading open-source project WebRTC () and integrate a
The CSS 3-based mouse displays Detail effects through animation, and the CSS 3 mouse details Effects
I have previously shared a jquery-based accordion display details for you. Today I want to share with you the CSS 3-based mouse-animated display details special effects. This instance is zoomed in based on the intermedi
Transform performs 2d and 3d deformation (css Animation 1), transformcssThis is my understanding and arrangement after learning. If you have any errors or questions, please correct them and I will keep updating them!
For some time, I did not clarify the relationships between transform, translate, transition, and animation. Now I want to sort it out:
Translate:
left, and the second is transform:
Transform
Obviously, in the frame mode, we can see that left is lower than the number of transform frames, and the time consumed in rendering and drawing is far greater than transform. I believe you have come to a conclusion.We use chrome's show paint rectangles to observe the differences between the rendering and the drawn areas during the animation process. The first is left, and the second is transform:
Tran
transform:Obviously, we can see in frame mode that left is lower than transform frame number, and it is time consuming to render and draw this side, left is far greater than transform. See here, I believe we have a conclusion in mind.We'll use Chrome's show paint rectangles to see what the difference is between the areas rendered and plotted during the animation, the first one for using left, and the second for using transform:As we can see, the brow
. Therefore, we should avoid these properties when we write animations: width, height, margin, padding, border, display, top, right, bottom, left, position, float, overflow, etc. 。Do not start the properties of the re-layout are: transform (where translate, rotate, scale), color, background, etc.
So, when we write CSS animations, we should prioritize the use of properties that do not trigger re-layout, so t
, transform to be more excellent. As for the reason, here is the concept of triggering a re-layout:When we change some of the properties, the layout-related properties trigger a redesign, which will take longer to render and draw. Therefore, we should avoid these properties when we write animations: width, height, margin, padding, border, display, top, right, bottom, left, position, float, overflow, etc. 。Do not start the properties of the re-layout are: transform (where translate,
() methodColumns such as: Transform:skew (10DEG,20DEG)Two. 3D ConversionRotatex () flips around the x-axisRotatey () flips forward and backward around the y-axisColumn: Transform:rotatex (120deg)CSS3 ExcessiveExcessive is the effect of an element gradually changing from one style to another (animated)Property: TransitionGcadiv{width:100px;height:100px;transition:width 2s linear 5s;}div:hover{width:300px;}(Hover over Div, div to width 300, animation f
Spin.js is a very simple CSS loader, he is a use of VML (Vector Makeup Language) CSS animation effect.Spin.js the characteristicsHe has a very strong adaptability and has the following features:1. No additional images, no added external CSS files2. There is no need to rely on other tools, and for jquery it supports jqu
(2) {--n:2;}
. Container Div:nth-child (3) {--n:3;}
. Container Div:nth-child (4) {--n:4;}
. Container Div:nth-child (5) {--n:5;}
. Container Div:nth-child (6) {--n:6;}
. Container Div:nth-child (7) {--n:7;}
. Container Div:nth-child (8) {--n:8;}
. Container Div:nth-child (9) {--n:9;}
Rotate the sub-elements so that the small squares are evenly distributed around the container for four weeks, and a circle is synthesized:
. container p {
transform
Using pure JS to achieve the animation effect code is large, computational complexity. So now the front-end page animation effect is generally implemented using CSS.CSS animation is simple and efficient, but in the process of animation, control animation is missing some effe
English Original: Https://davidwalsh.name/css-js-animationThe original author Julian Shapiro is the author of Velocity.js, Velocity.js is an efficient and easy-to-use JS animation library. In the "JavaScript Web page animation design" In the book of this library has a lot of more specific analysis of velocity and JS animation
One day Harry Roberts had a piece of code on his web site that was being consulted on Twitter and, if possible, improved in some ways. Harry Roberts did the carousel animation using keyframes, so using some mathematical calculations is likely to improve accordingly."Why do we have to learn algebra, Miss?" We ' re never going to use it ... '-everyone in my maths class BIT.LY/UAM2WFWhat's a good idea? As far as I can see, Harry Roberts used a carousel
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.