This article mainly for you to share 8 groups of super cool pure CSS3 mouse slide picture animation effect, each animation effect is very exciting, it is worth learning from, interested in small partners can refer to
This is an ultra-cool pure CSS3 mouse slide over the picture animation effect, it is divided into 8 groups of different effects, respectively, when the mouse over the picture, in different ways to display the mask layer and picture title. Each group of effects is divided into 3 different mouse-over picture effects.
These mouse over the picture when the animation effect is to use CSS3 to complete, respectively: sliding effect, tilt effect, flip effect, rotation effect and so on, below is a GIF preview picture.
How to use
Introduce the Hover-effects.css file in the page.
<link rel= "stylesheet" href= "Css/hover-effects.css"/>
HTML structure
Take one of the mouse-over picture animations as an example, its HTML structure is as follows:
<p class= "Effect-1" > <p class= "Image-box" > </ p> <p class= "Text-desc" >
CSS Styles
. effect-1{ Float:left; width:340px; position:relative; Overflow:hidden; Text-align:center; BORDER:4PX Solid Rgba (255, 255, 255, 0.9); overflow:visible; } . Effect-1 img{ transition:0.5s; } . Effect-1:hover img{ Transform:scale (0.3) Translatey ( -110%); position:relative; Z-index:9; } . effect-1. text-desc{ Transform:translatey (100%); opacity:0; padding:85px 20px 10px; transition:0.5s; } . effect-1:hover. text-desc{ Transform:translatey (0px); opacity:1; }
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!