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
Css notes -- differentiate transform transition animation and css3transform in css3Source: animation-related attributes in http://blog.csdn.net/dyllove98/article/details/8957232 CSS3 have three transform, transition, and animation attributes. Here is a one-to-one explanation
Transform
Static properties, once written into the style, will immediately display the function without any change in process. (similar to left, right, top, bottom such attributes)
Mainly used to make the deformation of the elements
There are five main properties that change the style of an element:
Translate3d (x, Y, z) controls where elements are positioned on the three axes of a page
Rotate (10deg) is used to contr
Transform and transition, transitiontransform in CSSTransform: Conversion
Move, scale, rotate, stretch, or stretch elements.Method: translate ():
The element moves from its current position based on the given left (x coordinate) and top (y coordinate) position parameters.
There are two divs whose css styles are as follows:
.before { width: 70px;
css010 CSS of the Transform Transition and the AnimationLook at no one can think of what they are doing.1. Transform Transform(variant)Rotate ( swivel )Transform:rotate (10DEG); Rotate clockwise 10 degrees (units of measure of deg angle)Scale ( zoom )Transform:scale (2); Sc
TransformAs I understand it, transform and width, height, and background are all properties of the DOM, unlike the CSS3, which can move, scale, rotate, lengthen, or stretch the original DOM elements. With some of the API on the canvas in a likeness, so transform seems to be able to do something JS can do.Transform 2D transformations and 3D transformations, there are good introductions and examples in W3scho
, attributes are ratios; matrix3d,css matrices. With this matrix attribute, all of the above attribute values are covered, but the individual feels that the readability is very poor (all numbers and units, the back is a little blurry), there is no reason to recommend the use.2.transitionIts properties are a simple animated property, very simple and very easy to use. It can be said that it is a simplified version of animation, is to do simple Web page
In front-end development, we often use CSS in the transform and transition, then what are their specific usage? Share with you today one or two.Transform: ConversionMoves, scales, rotates, lengthens, or stretches an element.Method: Translate ():Element is moved from its current position, based on the given left (x-coordinate) and top (y-coordinate) positional par
line (X axis) and vertical (Y-axis) parameters. before { width:70px; height:70px; Background-color: #8fbc8f; }. after { width:70px; height:70px; Background-color: #ffe4c4; -webkit-transform:skew (20deg, 20deg);/* Flips elements around the X-axis 20 degrees, flips 20 degrees around the Y-axis /-moz-transform:skew (20deg, 20deg); -ms-transform:skew (20deg, 20deg); -o-transform:skew
1.transformTransform is a technique for changing the appearance of a Web page by moving its elements in a browser, such as rotating transparent blur.-webkit-transform:translate (3em,0); To move the 3em right, move the 0em down-webkit-transform:rotate (30deg), clockwise 30 degrees-webkit-transform:translate ( -3em,1em), move 3em to the left, move down 1em-webkit-transform:scale (2), size magnification twice times2.transitionTansition allows the page to move. -webkit-
Set the effect of a style overTransition-property:none/all;Transition-duration:2s, time of movement, default is 0 secondstransition-delay:0s; Delay time default 0 secondsTransition-timing-function:ease slowly (default)Linear constant speed ease-in acceleration ease-out deceleration ease-in-out first speed up and then slow down *1, style duration delay can be ligatures multiple groups of each style using ', ' separatedToo many styles can be specified a
Source is hosted Github:https://github.com/cheerm/html-css3-project1Actually is a according to MOOC screen tutorial do a small project, not very time, but the final effect is pretty goodUsing the media query method of responsive designBy the way, there are three types of responsive designs:1) JS native (not recommended to use, not conducive to optimization)2) media query (with embedded, external)3) Front-end frame (e.g. bootstrap)The effect is as follows:"Note js/html/
delay time is 2s*/ transition:1s 2s;} . test:hover{ width:500px;}
Transition properties
Transition-property
Value: none | All |
Initial value: All
Applies to: all elements
Inheritance: None
None: No style specified all: Default value representing all style
Styles that can be transitioned
Not all CSS
ArticleDirectory
Transition-Duration
Transition-timing-Function
Transition-Delay
In css3, there are three animation-related attributes.
Transform ,
Transition And animation. Here is a one-to-one explanation:
T
Css3 practices-image carousel (Transform, Transition and Animation ),
The landlord prefers visual enjoyment. Although it is always happy at the cost of performance incompatibility. This article uses demo demos to briefly understand Transform, Transition, and Animation in css3.
This article needs to achieve the followin
translate (tx,ty)TransitionThe transition of CSS3 is described in the "CSS" transition allows the CSS property values to smoothly transition within a certain time interval. This effect can be triggered by clicking on the mouse, getting focus, being clicked, or any change to
side of the thick eyebrows involuntarily shaking two, oh, hehe ~ ~What does this look like, the nucleus? The arrows are so scary like the Octopus brothers!Why is there a fly shot back there? CSS is so scary, I have to go back to my mom ...Presumably most of the peers should be the same as me, no Einstein grandfather IQ, no photogenic need to take off the table dad. As a result, the information presented by the CSS3 3D
CSS3 Transform, Transition, and Animation attribute summary, css3transition
Three attributes related to deformation and animation in CSS3:
Transform
Browser support:
Internet Explorer 10, Firefox, and Opera support the transform attribute.
Internet Explorer 9 supports alternative-ms-
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.