简体   繁体   中英

What JS framework offers scroll functionality (+animation) in a div without a scrollbar?

All: I want to scroll through a sequence of tumblr/twitter posts as a long sequence of texts.

Let's say we have:

<div id="mainContent">
     _some content_
</div>

where the css for mainContent is:

#mainContent {
    padding: 20px 20px; 
    background: #FFF;
    height:500px;
    overflow:hidden;
}

I really like the functionality of Scrollable jQuery , but they require pagination and an array of elements.

I'm looking for tips in any of these categories:

  • a js framework I can use to achieve this
  • a solution to paginating the text

通过YUI找到了解决方案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM