Image Zoom Effect Animation CSS3 HTML Tutorial

Published :
Author :
Adam Khoury
Learn to create animated image zoom effects for little thumbnail images using CSS transitions. We will also talk about triggering the zoom effect using JavaScript event handling to target other events such as click, doubleclick, and more events that CSS alone cannot give you access to. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> .pic{ width:50px; height:50px; } .picbig{ position: absolute; width:0px; -webkit-transition:width 0.3s linear 0s; transition:width 0.3s linear 0s; z-index:10; } .pic:hover + .picbig{ width:200px; } </style> </head> <body> <img class="pic" src="adam_khoury.jpg" alt="Adam"> <img class="picbig" src="adam_khoury.jpg" alt="Adam"> <img class="pic" src="heart.png" alt="heart"> <img class="picbig" src="heart.png" alt="heart"> <img class="pic" src="hardhat.jpg" alt="hardhat"> <img class="picbig" src="hardhat.jpg" alt="hardhat"> </body> </html>