<div class="overlay"></div>
.overlay::after
{
position: fixed;
top: 0;
left: 0;
width: 100%;
content: "";
z-index: -1;
height: 100%;
transition: all 0.5s ease-in-out;
opacity: 0.5;
}
.popup::before
{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;.
height: 100%;
z-index: -1;
transition: all 0.5s ease-in-out;
}
这是我的覆盖类。我将这个div显示为所有弹出窗口的掩码。但问题是,即使我拥有过渡属性,它也不会显示任何动画。我想把它从左到右。我可以通过在显示时隐藏和积极向左的情况下给予负向左。有没有任何方法可以实现这一点,而不会有负向左移。有什么建议么??
检查此链接 http://stackoverflow.co m/questions/1025074/jquery-animate-hide-and-show http://stackoverflow.com/questions/17638990/jquery-show-and-hide-div-on-mouse-click-animate – user00000341 2015-04-04 05:53:06
是否有任何可能实现没有jquer – 2015-04-04 06:02:01
我想你想用css? – user00000341 2015-04-04 06:05:02