Simple flickering Effect of css3 elements (html5 jquery)

Source: Internet
Author: User

Css3 Animation:

@-Webkit-keyframes twinkling {/* transparency from 0 to 1 */
0% {
Opacity: 0;/* Transparency: 0 */
}
100% {
Opacity: 1;/* Transparency: 1 */

}
}

 

Jquery:

((Element).css ({"-webkit-animation": "twinkling 1 s infinite transform-in-out"}); // Add a flashing animation to the object element

 

You can also add the following in the css style:

# Element {

-Webkit-animation: twinkling 1 s infinite injection-in-out;

 

}

Note: The animation name is "twinkling" and the animation duration is "1 s". The animation effect is "Running-in-out ".

Http://www.cnblogs.com/roucheng/

Easy! In fact, it is much easier to use css3 for animation effects than flash and javascript! We hope that all browsers support css3 Animation quickly. Currently, all browsers in the webkit Kernel support (safrai, chrome)

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.