Use pure css3 to realize the animation effect code of a circle spreading from the center to the surroundings

高洛峰
Release: 2017-03-16 10:13:46
Original
2745 people have browsed it

Let’s take a simple example first, for example:

@keyframes hovertreemove
{
from {top:30px;}
to {top:130px;}
}

Effect:
http://hovertree.com/texiao/css3/37/1 .htm

You can createanimationsthrough @keyframes rules.

The principle of creating animation is to gradually change one set of CSS styles into another set of styles.
You can change this set of CSS styles multiple times during the animation.
Specify the time when the change occurs as a percentage, or through the keywords "from" and "to", which are equivalent to 0% and 100%.
0% is the start time of the animation, 100% is the end time of the animation.
For best browser support, you should always define 0% and 100% selectors.

The following is the code for up and down movement:


  css3使用animation和@keyframes制作动画_何问起  
说明

Copy after login

The following is the code for circular diffusion movement:


   纯css3圆形从中心向四周扩散动画效果_何问起 
说明

Copy after login

The above is the detailed content of Use pure css3 to realize the animation effect code of a circle spreading from the center to the surroundings. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!