Image comparison slider

Mainly, I need to clean up the code and make it more in-line with Discourse. It’s a bit sloppy at the moment, since I was actively learning how to make a theme component here :slight_smile:

I’m also planning on adding a way to change the slider direction from the composer- right now, the direction is whatever has been set in the admin settings, I’d like to make that user controllable. (EDIT: this has been added!)

I would also like to add more control over the slider handle/divider styles, but sadly it’s not really possible. The JavaScript handling the slider builds the slider before any CSS changes and doesn’t rebuild the slider when CSS changes.

9 Likes