-webkit-font-smoothing,transition,transform Animation

Source: Internet
Author: User

1.-webkit-font-smoothing

A "-webkit-font-smoothing" attribute is added to the CSS3. This property can make the font anti-aliasing on the page, and the font will look clearer and more comfortable after use.

None: The default style of the text, may appear blurry jagged appearance

antialiased: Non-aliased to make text visible

2.transform

The meaning of transform is: change, make ... to transform;


The properties of transform include: rotate ()/skew ()/scale ()/translate (,), and also X, Y, for example: Rotatex () and Rotatey (), and so on.

Let's break down the usage of each attribute:

Transform:rotate ():

Meaning: rotation, wherein "deg" is the meaning of "degree", such as "10deg" means "10 degrees" the same as below.


Transform:skew ():

Meaning: Tilt;

Transform:scale ():

Meaning: proportion; "1.5" means to enlarge by 1.5, if you want to enlarge twice times, you should write "2.0" and reduce the negative "-".

Transform:translate ():

Meaning: change, displacement; The following means that the right displacement of 120 pixels, if the upward displacement, the back of the "0" to change the value of the line, the left downward displacement is negative "-".



3.transition


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 the element, and animating the CSS property values in a sleek and animated manner. "


Transition Shorthand property, which is used to set four transition properties in one property.
Transition-property Specifies the name of the CSS property that the transition is applied to.
Transition-duration Defines the time that the transition effect takes. The default is 0.
Transition-timing-function A time curve that specifies the transition effect. The default is "ease".
Transition-delay Specifies when the transition effect begins. The default is 0.

over-the-curve effect

 (linear: linear transition. Equivalent to Bezier curves (0.0, 0.0, 1.0, 1.0) Ease: smooth transitions. Equivalent to Bezier curves (0.25, 0.1, 0.25, 1.0) Ease-in: from slow to fast. Equivalent to Bezier curves (0.42, 0, 1.0, 1.0) Ease-out: from fast to slow. Equivalent to Bezier curves (0, 0, 0.58, 1.0) Ease-in-out: From slow to fast to slow. Equivalent to Bezier curves (0.42, 0, 0.58, 1.0) Cubic-bezier (<  num ber  > , <  number  > ,  > , <  number  > ): A specific Bezier type with 4 values in the [0, 1] range) 
<! DOCTYPE html>





-webkit-font-smoothing,transition,transform Animation

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.