<!DOCTYPE html> <html> <head> <style> div{ width:100px; height:100px; background-color:red; transition:height 3s; transition:height 3s; /* for safari */ } div:hover{ height:50px } </style> </head> <body> <div>web4college</div> </body> </html>
Run
×
Share