【问题标题】:JQuery -- List items to slide onto the screen when the user scrolls to themJQuery -- 当用户滚动到它们时列出要在屏幕上滑动的项目
【发布时间】:2013-08-11 08:01:29
【问题描述】:

我一直在处理这个:

<head>
 <script src="jquery.js" type="text/javascript"></script>
 <script type="text/javascript">
     $(document).ready(
         function() {
             $("#text").hide();
             $("#text").html("Words!").slideDown('slow');
     });
 </script>
</head>
<body>
    <div id="text"></div>

我想在屏幕到达该点时滑入列表项。

有什么帮助吗?

【问题讨论】:

    标签: jquery animation text


    【解决方案1】:

    在滚动事件中向下滑动幻灯片

    $(window).scroll(function(){
        $("#text").html("Words!").slideDown('slow');
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-11
      • 1970-01-01
      • 1970-01-01
      • 2015-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多