#four{transition:all 2s cubic-bezier(0.2,-1,0.8,1);} //cubic-bezier(0.2,-1,0.8,1); #four:hover{ width:500px;}