Title: Using scroll to element
Last modified: August 21, 2016

---

# Using scroll to element

 *  [BradHarrington](https://wordpress.org/support/users/bradharrington/)
 * (@bradharrington)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-scroll-to-element/)
 * scrollToElement(ele, stickToTop, animate)
 * Not sure quite how to go about this. I would like to scroll to an id, class or
   even a name element, where I am calling the scroll from another div.
 * [http://code-rage.us/wines/pinot-noir/](http://code-rage.us/wines/pinot-noir/)
 * I want the left side text to access the scroll to function for the scrollable
   area on the right side.
 * I tried setting up a normal anchor link, which sort of worked but got rid of 
   the vertical centering on the page and move the anchored link right to the top.
   Not sure if there is a way to just fix that but figured that a scroll to element
   would accomplish the same thing but I don’t know how to make the call from one
   div to another.
 * Any ideas?
 * [http://wordpress.org/extend/plugins/wp-jscrollpane/](http://wordpress.org/extend/plugins/wp-jscrollpane/)

The topic ‘Using scroll to element’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-jscrollpane.svg)
 * [WP-jScrollPane](https://wordpress.org/plugins/wp-jscrollpane/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-jscrollpane/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-jscrollpane/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-jscrollpane/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-jscrollpane/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-jscrollpane/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [BradHarrington](https://wordpress.org/support/users/bradharrington/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/using-scroll-to-element/)
 * Status: not resolved