jQuery UI 动画溢出问题
我有一个元素 #content
和一个位于 #content
外部的子元素 #footer
。对 #content
进行动画处理时,#footer
在动画过程中不可见。我从另一个问题 这是因为动画在动画过程中将溢出设置为隐藏。然后,我将 jQuery UI (.ui-effects-wrapper
) 创建的包装器的溢出设置为 overflow:visible!important;
,但动画元素是动画期间在 #content
外部也可见。
所以:我需要 overflow:visible
才能看到我的 #footer
元素,但 jQuery UI 需要 overflow:hidden
来隐藏 之外的动画部分>#内容
。
有人可以帮忙吗?
谢谢
#content {
position: absolute;
width: 45em;
height: 26em;
top: 8em;
left: 16em;
}
#footer {
position: absolute;
width: 200em; //larger than #content, so have to play with overflow
height: 2.375em;
bottom: 0;
left: -50em;
}
.ui-effects-wrapper {
overflow: visible !important ;
}
I've got an element #content
and a child element #footer
positioned outside #content
. When animating #content
, #footer
is not visible during the animation. I've understood from another question that this was because the animation set overflow to hidden during the animation. I've then set the overflow of the wrapper created by jQuery UI (.ui-effects-wrapper
) to overflow: visible !important;
, but then the animated element is also visible outside #content
during the animation.
So: I need overflow: visible
to see my #footer
element, but jQuery UI needs overflow: hidden
to hide the animated part outside #content
.
Anybody can help?
Thanks
#content {
position: absolute;
width: 45em;
height: 26em;
top: 8em;
left: 16em;
}
#footer {
position: absolute;
width: 200em; //larger than #content, so have to play with overflow
height: 2.375em;
bottom: 0;
left: -50em;
}
.ui-effects-wrapper {
overflow: visible !important ;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在动画过程中,您可以更改可见性。示例:
这有帮助吗?
During the animation you can change the visibility. Example:
Would that help?