Title: On scroll
Last modified: April 15, 2020

---

# On scroll

 *  Resolved [tin_soldier](https://wordpress.org/support/users/tin_soldier/)
 * (@tin_soldier)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/on-scroll/)
 * Hey, nice work on this. The plugin works well still.
 * I was wondering if you know of a method to get the transition to happen on scroll
   position like this React based one: [http://hew.github.io/react-image-compare/](http://hew.github.io/react-image-compare/)(
   under scroll-based).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bolton Studios LLC](https://wordpress.org/support/users/boltonstudios/)
 * (@boltonstudios)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/on-scroll/#post-12684935)
 * [@tin_soldier](https://wordpress.org/support/users/tin_soldier/) Hello, Thank
   you for writing. I don’t have time to implement the functionality you described
   in the plugin right now, but I will keep it in mind if I add features to this
   plugin in the future. Off-hand, I do not know of a specific method to recommend
   for adding the scroller, but it should be achievable with jQuery. You could add
   the scroll UI (bar with button), then target the **clip** attribute of your two
   images (before/after) as well as the **left** attribute of the .twentytwenty-
   handle class, recalculating their values as the scroll UI changes. Those are 
   the values that changes when the user clicks and drags the handle in the existing
   plugin functionality

Viewing 1 replies (of 1 total)

The topic ‘On scroll’ is closed to new replies.

 * ![](https://ps.w.org/before-after-images-for-divi/assets/icon-256x256.png?rev
   =1910762)
 * [Before + After Images for Divi](https://wordpress.org/plugins/before-after-images-for-divi/)
 * [Support Threads](https://wordpress.org/support/plugin/before-after-images-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/before-after-images-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/before-after-images-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/before-after-images-for-divi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bolton Studios LLC](https://wordpress.org/support/users/boltonstudios/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/on-scroll/#post-12684935)
 * Status: resolved