Use CSS3 to produce animated effects, and CSS3 to produce animated effects.

Source: Internet
Author: User

Use CSS3 to produce animated effects, and CSS3 to produce animated effects.

Related attributes:

@ Keyframes rule: Define an animation

Syntax: @ keyframes animationname {keyframes-selector {CSS-style ;}}

Animationname: animation name

Keyframes-selector: animation duration (0% ~ 100%) from (indicating 0%) to (indicating 100%)

CSS-style: The style to be set;

For example, define an animation named myanimation:

@ Keyframes myanimation {

0% {font-size: 10px ;}

50% {font-size: 30px ;}

100% {font-size: 100px ;}}

 

Animation attribute: composite of the following attributes

Animation-name: animation name

Animation-duration: animation completion time

Aniamtion-timing-function: animation speed setting (linar/animated-in/animated-out/animated-in-out)

Animation-delay: the delay interval before the animation starts.

Animation-iteration-count: Number of playbacks (n/infinite)

Animation-direction: animation playback direction (normal/reverse

<!doctype html>

 

 

 

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.