Pause autoplay on mouse hover

Once again excellent work guys, what a great new element with so much flexibility!

So far I’ve noticed that there’s no autoplay pause feature where if you hover your mouse over the slider it pauses it. This would be a nice feature to have as well.

2 Likes

Good idea here. Will chat with Kory about how this might be implemented.

2 Likes

I wanted to circle back and let you know that unfortunately we didn’t end up implementing this one. We did however get in a way to visually indicate the autoplay progress (your other thread) and we also updated sliders not run the autoplay unless they are on the screen. If you scroll away, or haven’t reached a slider yet, it will remain paused.

2 Likes

Fantastic, thank you :+1: :+1:

Out of curiosity, what made you not implement the pause on hover? It’s not an uncommon feature for sliders.

Hi @JvP,

Regretfully it’s more of a scheduling thing. We’d have to refactor how the autoplay works a bit more, and don’t want to hold up the release any longer.The biggest issue is that anytime an autoplay “pauses” it resets the timer, and it isn’t easy for as at the moment to change that behavior to pause the timer instead. This doesn’t pair well with an option like pausing on hover, and is a bit awkward when combined with sliders that indicate the autoplay progress (something we did end up adding). We’ll keep it in mind for future updates, but want to move forward at this point and not add anything that would involve tearing out working code or refactoring.

Thanks for the explanation @alexander

Indeed you did, thanks for that :+1:

Totally understand.

Thanks for understanding. We’re reconsidering coming back to this and making it pause as the default behavior instead of reset. Won’t be in the initial release but it’s still being discussed.

3 Likes

Awesome :smiley:

Whenever you guys look into this you may also consider a slowdown on hover effect like the one on the carousels on this page from Apple: https://www.apple.com/services/