The grammar of a animation
1, @keyframes--insert KeyFrames
(1) Formto form:
CSS code copy content to clipboard
@keyframes Demo {
from {
Properties:properties value;
}
Percentage {
Properties:properties value;
}
to {
Properties:properties value;
}
}
(2) The form of a percentage:
CSS code copy content to clipboard
@keyframes Demo {
0% {
Propertie
discovery as long as set the Backface-visibility:hidden, do not need to turn on the GPU, directly with 2D rotation can also get very good results! Grandpa Deng is right, practice is the only standard to test the truth!Resources:1) Accelerated Rendering in chrome:http://www.html5rocks.com/en/tutorials/speed/layers/2) App Performance Validation: https://developer.mozilla.org/en-US/Apps/Fundamentals/Performance/App_performance_validation3) freed GPU CSS3 ani
element from one style to another without the use of any flash animation or JavaScriptWhen you add an effect to an element.2.CSS3 transitions are the effects of an element gradually changing from one style to another.Specify which CSS property the effect is added toDuration of the specified effectTransiton Shorthand property for setting 4 transition properties in one propertyTRANSITION-PROPERTY Specifies t
state outside of object animationForwards: Sets the state of the object at the end of the animationBackwards: Sets the state of the object when the animation startsBoth: Sets the state of an object to the end or start of an animationExample:div { -webkit-animation-fill-mode:both; Animation-fill-mode:both;} AnimationAnimated Composite Properties [
-both: both forward and backward fill modes are appliedAnimation-play-state Property-Specify whether the animation is running or paused-often used in conjunction with JavaScript code, for pausing animations during playback-Desirable values-Paused: Animation paused-Running: Animation playbackAnimations and Transitions-Transitions are used to make simple
As we all know, no matter what the project, in front of all must pay attention to is compatibility. Let's talk a little bit about compatibility verification today.
We know that no matter what the front-end project, it is necessary to pay attention to the issue is compatibility, then today to bring you a detailed strategy, we look at the need for compatible authentication browser.
We know that through the powerful CSS3 can create a variety of animation
Spin.js is a very easy CSS loader, he is a use of VML (Vector Makeup Language) CSS animation effect.Spin.js the characteristicsHe has a strong adaptability. There are several features:1. no additional images. There are no external CSS files added2. There is no need to rely on other tools, and for jquery it supports jqu
This article mainly introduces the use of CSS animation properties to explain, is the basic knowledge of CSS primer learning, the need for friends can refer to the following
First, the grammar of animation1. @keyframes--Insert KeyFrames(1) Formto form:
@keyframes Demo {from { properties:properties value; } Percentage { prop
CSS AnimationsPrinciple: 1. Changes between pictures 2. Visual persistence EffectProblemsThere are several ways to implement 1.CSS animations1.transition 2. KeyFrames (animation)2. Differences between transition animations and keyframe animations1. Transition animation requires state Change 2. Keyframe animations do no
Jquery helps you improve your website architecture. As part of the Javascript framework, jquery is constantly updated and has been updated to 1.8. You can see billboards on the street and pictures fade out. This can be done with jquery, you can see that some websites refresh the page each time, and the background image changes every time. This effect can also be achieved using it.ArticleIn, I will introduce you to 20 awesome jquery effect plug-ins. You can find a new
Recently in the CSS animation, encountered the need to use a script to replay the animation. For example:
CSS Animation code
Copy Code code as follows:
. seed_txt_out. seed_txt H2 {
ANIMATION-NAME:SEED-H2;
:250ms;; } #banana: hover { font-size:x-large; border:medium solid white; Background-color: #1fa6e6; color:white; padding:4px; transition-delay:100ms; Transition-property:background-color,color,padding,font-size,border; transition-duration:500ms; transition-timing-function:linear; }
2. Using animations
CSS animation is essentially an enhanced transition. In the process o
Date: 2013-7-4 Source: gbin1.com
Website design requires a large number of beautiful features and configurable element animations, making some JavaScript libraries such as jquery and mootools widely used. Although the browser currently supports CSSTransformationAndKeyframeMany people still use JavaScript to create animations, but CSS animations are more efficient than JavaScript-driven animations. CSS
Original linkTranslation \ Translator BaoThere is a UI animation before a good UI animation. Good animations make people wonder "Wow!" "--because the page looks smooth and beautiful, and most importantly, naturally, it doesn't make people feel discordant or stiff. If you often visit dribbble or uplabs sites like this, you will understand what I am talking about.Some excellent reading resources to expand:· P
recently learning CSS in the process, found a lot of useful things. Including some magical, pure css effects, just a few simple strokes to completeJquerythe effect of the implementation. CSS 3 provides a property,Transition (transform), that enables the transition to occur when the values of some of the elements of an element change. For example, the length incre
Custom animations:1.animation-name (Custom animation name)The animation name applied by the element must be used with @keyframes, and the name is defined by @keyframes.KeyFrames (animation keyframe): Begins with @keyframes, where {} writes a style rule for a different time period.2.
number of loops is greater than 1.3.3 Animation-play-stateValue: Running,pause is used to set pause and play.3.4 Animation-fill-modeLets you set the state style before and after the animation begins.None (the default value) remains intact before and after the start.Forwards, the state of the last frame is maintained after the
CSS3 2D Deformation properties, scale: Used to zoom elements (zoom in and Out), translate: Move elements on the screen (up or down), rotate: Rotate elements at a certain angle (in degrees), skew: chamfered elements along the x and y axes, matrix: Allows the distortion effect to be controlled with pixel precision. The deformation occurs outside of the document. A deformed element does not affect the position
After css animation ends, js cannot modify the translated value., csstranslated
Due to the needs of the project, I need to do some page transfer animation.
It is about to be a mobile terminal, and css animation must be the first.
The results show that in
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.