Similar to Netease's 'trash' animation effect and Netease's trashboard Animation
When it comes to animation, we will talk about CSS3 animation. Indeed, this article has brought about a simple imitation of Netease's garbage bin animation effect. The knowledge points involved are transform and transition.
The transform attribute applies 2D or 3D conversions to elements. This attribute allows us to rotate, scale, move, or tilt elements.
transform: none|transform-functions;
The transition attribute is short for setting four transition attributes.
transition: property duration timing-function delay;
First, describe the expected effect: move the cursor to the control entry to display the recycle bin. When the cursor moves to the recycle bin, the garbage bin cap is automatically opened.
The effect is very simple, but it is very considerate to use. Is it a pleasure? Haha!
Principle: during hover, use the transform attribute to rotate for 25 degrees clockwise, and use transition to apply the transform attribute to implement animation!
Complete code:
<! DOCTYPE html>
Click to download dustbin2.png Images
I used ps to perform an animated effect on the image. Now I want to recreate the animation. How can I delete the current animation effect?
Click the small window that is not needed in the animation. Click the recycle bin.
Now Netease mailbox's garbage collection can go somewhere
There is another folder under the inbox and draft box, where