Using CSS3 to achieve eight groups of super cool mouse slide over the picture animation

Source: Internet
Author: User
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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.