Home > Web Front-end > CSS Tutorial > Detailed explanation of simple implementation example of css rotation animation effect

Detailed explanation of simple implementation example of css rotation animation effect

高洛峰
Release: 2017-03-03 16:55:45
Original
2389 people have browsed it

We can create animation effects through css. What I will demonstrate below is the rotation of p and the animation of color transition

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title></title>
<style>
    a{       
        text-align:center;   
        line-height:100px;   
        transition:all 2s;   
        width:100px;   
        height:100px;   
        background:pink;   
        float:left;   
        border-radius:50%;   
    }   
    a:hover{   
        transition:all 2s;   
        background:red;   
        transform-origin:50 100;   
        transform:rotate(360deg);   
        border-radius:50%;   

    }   
</style>
</head>
<body>
<h1>请将鼠标移动到下面的矩形上:</h1>
<a>
    两秒旋转360   
</a>
</body>
</html>
Copy after login

The effect is tested by myself, it is very gorgeous oh!

The above article about the simple implementation of css rotation animation effect is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support the PHP Chinese website.

For more simple implementation examples of css rotation animation effects, please pay attention to the PHP Chinese website for related articles!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template