<!DOCTYPE html> <html> <head> <style> div{ width:100px; height:100px; background-color:red; margin:20px 0px 0px 20px; transition:transform 2s; -webkit-transition:transform 2s; /* for safari */ } div:hover{ transform:scale(2, 1.5); } </style> </head> <body> <div>web4college</div> </body> </html>
Run
×
Share