.cus { position:fixed; bottom:30px; right:20px; width:60px; height:325px; overflow:hidden; } .squ { width:60px; height:60px; background:red; border-radius:5px; margin-top:5px } .as { position:relative; top:260px; z-index:2 } .th { height:195px; transition:all 0.5s; overflow:hidden; transform:translateY(200px); opacity:0; text-align:center; line-height:30px; } .cus:hover .th { transform:translateY(0px); opacity:1 }