[英]animate when scroll bar reaches bottom of container
I've got two nested text boxes side-by-side with both overflow properties set to scroll (in Edge Animate). 我有两个并排的嵌套文本框,两个溢出属性都设置为滚动(在Edge Animate中)。 I'm trying to make it so that when the first text box's scroll bar reaches the bottom the second text box fades in. 我正在尝试使第一个文本框的滚动条到达底部时,第二个文本框淡入。
I'm using the scrollTop() function with no success, ie 我正在使用scrollTop()函数没有成功,即
if (sym.$('My_div').scrollTop() == 100)
{
sym.$('My_div2').show();
}
Any suggestions? 有什么建议么?
Maybe like this: 可能是这样的:
if (sym.$('My_div').scrollTop() == 100){
sym.$('My_div2').show().fadeOut("slow");
}
Just added fadeOut or fadeIn and the set that to slow. 刚刚添加了fadeOut或fadeIn,并将其设置为慢速。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.