-WebKit-animation [css3]

Source: Internet
Author: User

-WebKit-Animation: name, duration, timing-function, delay, iteration_count, Direction

(1)-the use of the WebKit-animation-name attribute must be combined with @-WebKit-keyframes.

Eg: @-WebKit-keyframes fontchange {

0% {font-size: 10px ;}

30% {font-size: 15px ;}

100% {font-siez: 12px ;}

}

The percentage indicates the duration percentage. If duration is not set, the value is infinite.

(2)-WebKit-animation-duration indicates the animation duration.

(3)-WebKit-animation-timing-function indicates the time curve used by the animation.

[Syntax]:-WebKit-animation-timing-function: Functions | linear | memory-In | memory-Out | memory-in-out

(4)-WebKit-animation-delay indicates the latency before the animation starts.

[Syntax]-WebKit-animation-delay: delay_time;

(5)-WebKit-animation-iteration-count indicates that the animation must be repeated several times.

[Syntax]-WebKit-animation-iteration-count: times_number;

(6)-WebKit-animation-direction indicates the animation direction

[Syntax]-WebKit-animation-direction: normal (default) | Alternate

Always forward in normal direction

Alternate goes forward when the number of repetitions is an even number, and the direction is opposite when the odd number is an odd number.

[Also] other attributes related to animation

(1)-WebKit-animation-fill-mode: none (default) | backwards | forwards | both sets the action before and after the animation starts (test ends)

Results are not clear)

(2)-WebKit-animation-play-state: running (default) | paused sets the animation running status

 

Comprehensive case:

@-WebKit-keyframes fontbulger {

0% {font-size: 10px ;}

30% {font-size: 15px ;}

100% {font-size: 12px ;}

}

# Box {

-WebKit-animation-Name: fontbulger;

-WebKit-animation-Duration: 1 s;

-WebKit-animation-iteration-count: 3;

-WebKit-animation-direction: Alternate;

-WebKit-animation-timing-function: timed-out;

-WebKit-animation-fill-mode: both;

-WebKit-animation-delay: 2 S;

}

<Div ID box text change </box text change <

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.