Friday, April 26, 2013

Beranda » , » Transition Effect For Images Using CSS3

Transition Effect For Images Using CSS3



In web development, images play a key role to make your blog or website more beautiful and attractive. There are different effects which you can apply on the images to make them looking extra ordinary good. Some of these effects can be apply using CSS3, which provides some strong and useful features through which you can make your website something exceptional. Here in this post i am going to show you that how can you apply some “TRANSITION EFFECTS” to your images. Transition effects in CSS3 for images can be used in different scenarios like “ROTATING” the image to certain amount of degrees, change images “OPACITY”and many other features.


You Can Apply Transition Effect For Your Images By Following The Simple Steps:

  1. Login to your Blogger Dashboard.

  2. Go to Template. 

  3. Backup your Template. (Click Here To See, How?)

  4. Now click “EDIT HTML.”

  5. Press CTRL+F, and search for ]]></b:skin>

  6. Just before ]]></b:skin>, paste the following code:
<style>

.transition
{
opacity: 0.3;
margin-left: 0px;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
-webkit-transition: all 0.5s ease-out;
-ms-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
filter: progid:DXImageTransform.Microsoft.Matrix(
T11=0.99, T12=-0.08, T21=0.08, T22=0.99, sizingMethod='auto expand');
zoom: 1;
} 
.transition:hover{
opacity: 1.5;
margin-left: 0px;
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
filter: progid:DXImageTransform.Microsoft.Matrix(
T11=1, T12=0, T21=0, T22=1, sizingMethod='auto expand');
zoom: 1.2;
-moz-box-shadow: 1px 1px 1px #000;
-webkit-box-shadow: 1px 1px 1px #000;
box-shadow: 1px 1px 1px #000;
}

</style>
  1. Now go to “LAYOUT” > “ADD A GADGET”.

  2. Select “HTML/JAVASCRIPT” from the list and add the following code:
<img src="http://i1310.photobucket.com/albums/s658/ubaidh/DP_zpsa70587cc.jpg?t=1366990508" border="1" width="70" height="70" align="left" style="margin:5px;" alt="" class="transition" />
  1. Click SAVE.

That’s it, you are all done. Refresh your blog page to see the effects.


Note: 


Change Rotation (360⁰ ), Opacity & Zoom to your own choice.

Change link in <img src=”” > to your own image link.

Change  border, width, height and align  according to your requirement.



- Don't forget to share this post, and if you have any questions leave your comments below.