Title: How to scroll element programmatically using jquery
Last modified: January 19, 2017

---

# How to scroll element programmatically using jquery

 *  [marvinmarpol](https://wordpress.org/support/users/marvinmarpol/)
 * (@marvinmarpol)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/how-to-scroll-element-programmatically-using-jquery/)
 * Hello,
 * I want some element to scroll like a credits text in the end of a movie. I want
   the element to scroll by it’s own overtime. Can I achieve this using jquery, 
   and how to do it?
    -  This topic was modified 9 years, 3 months ago by [marvinmarpol](https://wordpress.org/support/users/marvinmarpol/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/how-to-scroll-element-programmatically-using-jquery/#post-8680496)
 * Hi there,
 * This plugin relies on the jQuery plugin called [malihu custom scrollbar plugin](https://github.com/malihu/malihu-custom-scrollbar-plugin).
 * According to [its documentation](http://manos.malihu.gr/jquery-custom-content-scroller/),
   you can do that with the `scrollTo()` method.
 *     ```
       scrollTo
   
       Usage $(selector).mCustomScrollbar("scrollTo",position,options);
   
       Call the scrollTo method to programmatically scroll the content to the position parameter (demo). 
   
       ...
       ```
   
 * So check out the **scrollTo** section of the linked documentation.
 * Good luck!
 *  Thread Starter [marvinmarpol](https://wordpress.org/support/users/marvinmarpol/)
 * (@marvinmarpol)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/how-to-scroll-element-programmatically-using-jquery/#post-8683345)
 * Hello,
 * I will try to play with it than.
    Thank you so much for your help

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to scroll element programmatically using jquery’ is closed to new
replies.

 * ![](https://ps.w.org/custom-scrollbar/assets/icon-256x256.png?rev=1269039)
 * [Custom Scrollbar](https://wordpress.org/plugins/custom-scrollbar/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-scrollbar/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-scrollbar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-scrollbar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-scrollbar/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 2 replies
 * 2 participants
 * Last reply from: [marvinmarpol](https://wordpress.org/support/users/marvinmarpol/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/how-to-scroll-element-programmatically-using-jquery/#post-8683345)
 * Status: not resolved