Oppure puoi utilizzare le transition o le animation di CSS...