ดาวน์โหลดฟรี

ดาวน์โหลด Pure CSS3 images Hover Effects
เข้าชมทั้งหมด : 589 ครั้ง | ดาวน์โหลด : 154 ครั้ง | หมวด : Image Effects


Pure CSS3 images Hover Effects

There are five examples of hover effects using different CSS properties compared to the old tutorial posted on Codrops. In summary, we seek the same method but we will act especially using the border property, as we shall see later that allows us to create very particular effects. Please note that this will only work properly in modern browsers that support the CSS3 properties in use.

HTML Markup

This simple structure allows us to make these effects. As you can see in the code below we create a parent class view, and the contents inside. Then we create a class mask where we apply CSS3 transitions to get the hover effect. In later examples, this syntax could change slightly depending on the effect you want to apply.

1 <div class="view"
2       <img src="images/1.jpg" /> 
3       <div class="mask">div
4       <div class="content"
5            <a href="#" class="info" title="Full Image">Full Imagea
6       div
7 div>

CSS

Here you will set the basic properties of our tutorial. For every effect there will be a different CSS file, you can incorporate the various effect into one CSS file.

01 .view {
02    width: 300px;
03    height: 200px;
04    margin: 10px;
05    float: left;
06    border: 5px solid #fff;
07    overflow: hidden;
08    position: relative;
09    text-align: center;
10    box-shadow: 0px 0px 5px #aaa;
11    cursor: default;
12 }
13 .view .mask, .view .content {
14   &nbs