Title: Stop on hover
Last modified: August 21, 2016

---

# Stop on hover

 *  Resolved [gregorcio1992](https://wordpress.org/support/users/gregorcio1992/)
 * (@gregorcio1992)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/stop-on-hover/)
 * Hi!
    Just like in the topic, is it possible?
 * GB! 🙂
 * [http://wordpress.org/extend/plugins/easing-slider/](http://wordpress.org/extend/plugins/easing-slider/)
 * EDIT:
    I think stop after all slides would be ok either.

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

 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/stop-on-hover/#post-3853830)
 * Should be possible using some custom JS. For pause on hover, add this to your
   theme’s header.php before the `</head>`:
 *     ```
       <script type="text/javascript">
       jQuery(document).ready(function($) {
           $('.easingsliderlite').on('mouseenter', function() {
               $('.easingsliderlite').data('easingsliderlite').startPlayback();
           });
           $('.easingsliderlite').on('click', function() {
               $('.easingsliderlite').data('easingsliderlite').endPlayback();
           });
       });
       </script>
       ```
   
 * For ending playback after your slideshow has cycled through all of the slides,
   use this code:
 *     ```
       <script type="text/javascript">
           jQuery(document).ready(function($) {
               var inc = 0;
               $('.easingsliderlite').data('easingsliderlite').$el.on('nextslide', function() {
                   inc++;
                   if (inc == $('.easingsliderlite').data('easingsliderlite').count) {
                        $('.easingsliderlite').data('easingsliderlite').endPlayback();
                   }
               });
           });
       </script>
       ```
   
 * Hope these do the trick 🙂
 *  [itflexdemo](https://wordpress.org/support/users/itflexdemo/)
 * (@itflexdemo)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854041)
 * I tried this code for pause on hover, but its not working. So I changed it little
   bit to make it work for me.
 * <script type=”text/javascript”>
    jQuery(document).ready(function($) { $(‘.easingsliderlite’).
   on(‘mouseenter’, function() { $(‘.easingsliderlite’).data(‘easingsliderlite’).
   endPlayback(); }); $(‘.easingsliderlite’).on(‘mouseleave’, function() { $(‘.easingsliderlite’).
   data(‘easingsliderlite’).startPlayback(); }); }); </script>
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854045)
 * Just to update everyone, the code I pasted previously was incorrect. As the post
   is old I’m unable to edit it. Here is the code you should be using for pause 
   on hover.
 *     ```
       jQuery(document).ready(function($) {
           $('.easingsliderlite').on('mouseenter', function() {
               $('.easingsliderlite').data('easingsliderlite').resumePlayback();
           });
           $('.easingsliderlite').on('mouseleave', function() {
               $('.easingsliderlite').data('easingsliderlite').pausePlayback();
           });
       });
       ```
   
 *  [Paul Renault](https://wordpress.org/support/users/little_anarchist/)
 * (@little_anarchist)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854046)
 * I have added this code to the header. It still plays on hover. [http://www.brydgespropertymanagement.com/dev/](http://www.brydgespropertymanagement.com/dev/)
 *     ```
       jQuery(document).ready(function($) {
           $('.easingsliderlite').on('mouseenter', function() {
               $('.easingsliderlite').data('easingsliderlite').resumePlayback();
           });
           $('.easingsliderlite').on('mouseleave', function() {
               $('.easingsliderlite').data('easingsliderlite').pausePlayback();
           });
       });
       ```
   
 * **EDIT: ** I changed to itflexdemo’s code and it is now pausing on hover.
 *  Plugin Author [MatthewRuddy](https://wordpress.org/support/users/matthewruddy/)
 * (@matthewruddy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854047)
 * Yup, I’d made another mistake – my head is all over the place! Apologies to everyone!
 * Here’s the code:
 *     ```
       jQuery(document).ready(function($) {
           $('.easingsliderlite').on('mouseenter', function() {
               $('.easingsliderlite').data('easingsliderlite').pausePlayback();
           });
           $('.easingsliderlite').on('mouseleave', function() {
               $('.easingsliderlite').data('easingsliderlite').resumePlayback();
           });
       });
       ```
   
 *  [simone_asr](https://wordpress.org/support/users/simone_asr/)
 * (@simone_asr)
 * [12 years ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854048)
 * Thank You Matthew!! 😀

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

The topic ‘Stop on hover’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easing-slider_262626.svg)
 * [Easing Slider](https://wordpress.org/plugins/easing-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easing-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easing-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/easing-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easing-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easing-slider/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [simone_asr](https://wordpress.org/support/users/simone_asr/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/stop-on-hover/#post-3854048)
 * Status: resolved