WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
×

CSS Reference

CSS Reference CSS Selectors CSS Functions CSS Reference Aural CSS Web Safe Fonts CSS Animatable CSS Units CSS PX-EM Converter CSS Colors CSS Color Values CSS3 Browser Support

CSS Properties

align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight hanging-punctuation height justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position quotes resize right tab-size table-layout text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-overflow text-shadow text-transform top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width word-break word-spacing word-wrap z-index



 

CSS3 animation-timing-function Property


Example

Play an activity with the progression end from starting to end:

div {
    - webkit-liveliness timing-work: step-end;/* Chrome, Safari, Musical drama */
    activity timing-work: step-end;
}

Definition and Usage

The activity timing-work indicates the speed bend of an animation.

The speed bend characterizes the TIME a movement uses to change from one lot of CSS styles to another.

The speed bend is utilized to roll out the improvements smoothly.

Default value: ease
Inherited: no
Animatable: no. animatable
Version: CSS3
JavaScript syntax: object.style.animationTimingFunction="linear"

Browser Support

The numbers in the table indicate the principal program form that completely bolsters the property.

Numbers pursued by - webkit-, - moz-, or - o-determine the main form that worked with a prefix.

Property
animation-timing-function 43.0
4.0 - webkit-
12.0 10.0 16.0
5.0 - moz-
9.0
4.0 - webkit-
30.0
15.0 - webkit-
12.0 - o-

CSS Syntax

liveliness timing-work: linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end|steps(int,start|end)|cubic-bezier(n,n,n,n)|initial|inherit;

The liveliness timing-work utilizes a numerical capacity, called the Cubic Bezier bend, to make the speed bend. You can utilize your own values in this capacity, or utilize one of the pre-characterized values:

Property Values

Value Description
linear The activity has a similar speed from begin to end
ease Default esteem. The activity has a moderate begin, at that point quick, before it closes slowly
ease-in The liveliness has a moderate start
ease-out The liveliness has a moderate end
ease-in-out The liveliness has both a moderate begin and a moderate end
step-start Equivalent to steps(1, start)
step-end Equivalent to steps(1, end)
steps(int,start|end) Specifies a venturing capacity, with two parameters. The principal parameter indicates the quantity of interims in the capacity. It must be a positive number (more prominent than 0). The second parameter, which is discretionary, is either the esteem "start" or "end", and determines the time when the difference in values happen inside the interim. On the off chance that the second parameter is excluded, it is given the esteem "end"
cubic-bezier(n,n,n,n) Define your very own qualities in the cubic-bezier function
Conceivable qualities are numeric qualities from 0 to 1
initial Sets this property to its default value.Read about initial
inherit Inherits this property from its parent component. Find out about inherit

Tip: Try the distinctive qualities in the Try it Yourself area below.


More Examples


Example

To better comprehend the diverse planning capacity values;
Here are five diverse <div> components with five distinctive values:

/* For Chrome, Safari and Opera */
#div1 {-webkit-liveliness timing-work: linear;}
#div2 {-webkit-liveliness timing-work: ease;}
#div3 {-webkit-liveliness timing-work: ease-out;}
#div4 {-webkit-liveliness timing-work: ease-in;}
#div5 {-webkit-liveliness timing-work: ease-in-out;}

/* Standard sentence structure */
#div1 {animation-timing-work: linear;}
#div2 {animation-timing-work: ease;}
#div3 {animation-timing-work: ease-in;}
#div4 {animation-timing-work: ease-out;}
#div5 {animation-timing-work: ease-in-out;}

Example

Same as the model above, yet the speed bends are characterized with the cubic-bezier function:

/* For Chrome, Safari and Opera */
#div1 {-webkit-movement timing-work: cubic-bezier(0,0,1,1);}
#div2 {-webkit-movement timing-work: cubic-bezier(0.25,0.1,0.25,1);}
#div3 {-webkit-movement timing-work: cubic-bezier(0.42,0,1,1);}
#div4 {-webkit-movement timing-work: cubic-bezier(0,0,0.58,1);}
#div5 {-webkit-movement timing-work: cubic-bezier(0.42,0,0.58,1);}

/* Standard language structure */
#div1 {animation-timing-work: cubic-bezier(0,0,1,1);}
#div2 {animation-timing-work: cubic-bezier(0.38,0.1,0.25,1);}
#div3 {animation-timing-work: cubic-bezier(0.55,0,1,1);}
#div4 {animation-timing-work: cubic-bezier(0,0,0.55,1);}
#div5 {animation-timing-work: cubic-bezier(0.38,0,0.55,1);}