Use CSS3 to implement avatar rotation effect animation

php中世界最好的语言
Release: 2018-03-22 10:28:46
Original
2012 people have browsed it

This time I will bring you the use of CSS3 to realize the avatar rotation effect animation, and what are the precautions for using CSS3 to realize the avatar rotation effect animation. The following is a practical case, let's take a look.

Effect when the mouse is not placed:

Use CSS3 to implement avatar rotation effect animation

Rotate after the mouse is placed Effect:

Use CSS3 to implement avatar rotation effect animation

##transition: all 2.0s; means that all

attributes transformation is completed within 2 seconds;

transform: rotate(360deg); means the image is rotated 360 degrees.

nbsp;html>

    
        <meta>
        <title></title>
        <style>
            img{
                border: #000 solid 2px;
                display: block;
                margin: 50px auto;
                border-radius: 50%;
                transition: all 2.0s;
            }
            img:hover{
                transform: rotate(360deg);
            }
        </style>
    
    
        <img  alt="Use CSS3 to implement avatar rotation effect animation" >
    
Copy after login
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

Bootstrap implementation price list

css to make ripple animation

How does CSS handle the browser’s default style

The above is the detailed content of Use CSS3 to implement avatar rotation effect animation. 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
Popular Tutorials
More>
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!