Friday, August 12, 2011

Scale image in CSS3



1. HTML Code

<section class="social-zoom">
<a href="#"><img alt="Share to Facebook" src="images/social-facebook.png"></a>
<a href="#"><img alt="Share to Twitter" src="images/social-twitter.png"></a>
<a href="#"><img alt="Digg This" src="images/social-digg.png"></a>
<a href="#"><img alt="Stumble It" src="images/social-stumble-upon.png"></a>
<a href="#"><img alt="Share to Reddit" src="images/social-reddit.png"></a>
<a href="#"><img alt="Share to Delicious" src="images/social-delicious.png"></a>
<a href="#"><img alt="Technorati" src="images/social-technorati.png"></a>
<a href="#"><img alt="LinkedIn" src="images/social-linkedin.png"></a>
<a href="#"><img alt="Google Buzz" src="images/social-buzz.png"></a>
<a href="#"><img alt="Blogger" src="images/social-blogger.png"></a>
<a href="#"><img alt="More..." src="images/more.png"></a>
</section>
2. Style Sheet

<style type="text/css">
section.social-zoom
{
	clear: both;
	display: block;
	margin-top: 20px;
	text-align: center;
}
section.social-zoom a
{
	margin: 0;
	outline: medium none;
	padding: 0 2px;
	cursor: pointer;
}
section.social-zoom a img
{
	-webkit-transition: all 0.8s ease-in-out;
	-moz-transition: all 0.8s ease-in-out;
}
section.social-zoom a img:hover
{
	-webkit-transform: scale(1.5,1.5);
	-moz-transform: scale(1.5,1.5);
}
</style>

No comments:

Post a Comment