I have successfully created a scroll to top and scroll to bottom feature using jquery
. The scrolling is based on percentages, so if it scrolls from top to bottom at 50%
, it will stop at 50%. Now, I am trying to figure out how to make the remaining 50% of the scroll happen when clicked again. Does anyone have any suggestions or ideas on how to accomplish this with jquery?
For reference, here is the fiddle: http://jsfiddle.net/TkYpY/
Thank you, vicky