html - Animated Section Indicator using <ul> like twitter bootstrap -


i using twitter bootstrap , has long page divide multiple sections.

i'd implement section indicator on top left of screen shows reader reading, screenshot below:

section indicator - final, working example can seen global.tommy.com

i managed layout correctly shown here:

my working version

however, i've got problems i've been working few weeks still can't solved:

  1. how mark current section dynamically user scroll
  2. how animate movement of arrow source next
  3. (or directly destination if reader click farther away
  4. rather scrolling)

i've tried simpler version getbootstrap.com/components still no avail... please help... stressful i'm particularly weak in javascript , css :(

the <ul> <li> in getbootstrap.com/components works too, not included in component , cant figure out code :(

edit:

to summarize answer:

take @ library:

https://github.com/davist11/jquery-one-page-nav.git

for single-page website have @ 1 page navigation plugin http://trevordavis.net/blog/jquery-one-page-navigation-plugin. assigns css-class current menu item upon clicking , user scrolls down page.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -