CSS Transform timing and latency

Source: Internet
Author: User
Tags visibility

-webkit-transition-moz-transition-o-transition transition

CSS Property

The property being transformed (for example, color).

Duration

The duration of the transformation, usually measured in seconds (e.g.,. 25s).

Timing function

Allows you to control how long the duration is calculated. Instead of using a simple linear calculation, you can either accelerate (fade) or decelerate (fades), or even specify a beat or count (for example, linear). More on this later in the article.

Delay

How long to wait between the action and the start of the transformation, usually expressed in seconds (e.g.,. 1s). If you do not want to delay, the value can be omitted.

CSS Properties

Color color

Crop percent

Font-weight Digital

Height percent, length

Letter-spacing length

Line-height percent, length, number

Opacity Digital

Outline-offset integer

Outline-width length

Right percent, length

Text-indent percent, length

Text-shadow Shadow

Vertical-align percent, length, keywords

Visibility visibility

word-spacing percent, length

Z-index positive integer

Zoom Digital

Transform Timing and latency

With transformations, you can change the rate of the transformation, slow at the beginning and then accelerate at the end, and vice versa, or anything between. CSS transforms have 5 timed keywords and also allow you to define your own timing curves.

Cubic-bezier (x1, y1, x2, y2) X and Y values are between 0 and 1 to define the shape of the Bezier curve for the time function.

Linear Average Speed

Ease slowing down slowly.

ease-in acceleration (fade into)

Ease-out deceleration (fade out)

Ease-in-out accelerates and slows down.

Related Article

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.