A HTML5 form with luminous animation-

Source: Internet
Author: User
Today, I will show you an HTML5 form with luminous animation. It's cool: when the form gets the focus, it will show the effect of the luminous animation around the form, and the color gradient will continue; when the Form loses focus, the light is stopped. Among them, the color gradient animation is only based on web ...,. Today, I want to show you an HTML5 form with luminous animation. It's cool, as shown below:

When the form gets the focus, the form will show the effect of the luminous animation around it, and the color gradient will continue; when the form loses the focus, the light will stop. Only webkit-based browsers have the effect of color gradient animations, such as chrome and safari. The following is a simple post of CSS code and HTML code for implementing this luminous HTML5 form. If you like it, share it with your friends.

The HTML code is as follows:

The CSS code is as follows:

 

Jquery is required for form focus switching. The js Code is as follows:

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.