Home > Web Front-end > CSS Tutorial > CSS3 implementation of avatar rotation effect example sharing

CSS3 implementation of avatar rotation effect example sharing

小云云
Release: 2017-12-19 13:11:51
Original
2855 people have browsed it

This article mainly introduces CSS3 to achieve the avatar rotation effect. The editor thinks it is quite good. Now I will share it with you and give it as a reference. Let’s follow the editor to take a look, I hope it can help everyone.

The effect when the mouse is not placed:

CSS3 implementation of avatar rotation effect example sharing

The rotation effect after the mouse is placed:

CSS3 implementation of avatar rotation effect example sharing

transition : all 2.0s; means that all attribute transformations are completed within 2 seconds;

transform: rotate(360deg); means that 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="CSS3 implementation of avatar rotation effect example sharing" >
    
Copy after login

Related recommendations;

Detailed examples of HTML5 and CSS3 to achieve 3D conversion effects

Detailed explanation of CSS and HTML custom checkbox Effect

About the implementation method of CSS3 multiple elements displaying the effect in sequence

The above is the detailed content of CSS3 implementation of avatar rotation effect example sharing. 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