Code example for the floating mouse Door Opening and Closing effect implemented by CSS3 and css3
Sample Code for the effect of hovering the cursor to open and close the door in CSS3:
This section shares a code example. It uses CSS3 to simulate a simple door opening and closing effect.
The code example is as follows:
<! DOCTYPE html>
The above Code meets our requirements. The Code does not need to be described too much. You only need to understand the principles of each attribute.
Related reading:
(1) For details about border-color attributes, refer to the border-color usage section in css3.
(2). For more information about transition attributes, see section 3.
(3). For details about before, see section before/E: before, a pseudo object selector of CSS.
(4). For details about how to implement border-radius, refer to the section on how to implement corner effects in CSS3.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 18180.
For more information, see: http://www.softwhy.com/divcss/