【发布时间】:2012-01-15 01:00:50
【问题描述】:
基本上我试图在项目悬停时与鼠标离开时有不同的过渡时间,
#bar{ position:fixed; bottom:-25px; } /*here you only get to see a piece of the bar */
#bar:hover{ transform: .2s linear; bottom:0; }
类似的东西
/*this only represents my made out status to cover what i need*/
#bar:mouseLeaved{ transform: 2s linear }
这样显示需要 0.2 秒,隐藏需要 2 秒
我可以在不需要 javascript 的情况下做到这一点吗?
【问题讨论】:
标签: css css-transitions