Canvas Slider Stop on mouse over

1 reply·opened Sep 13, 2021
R
RAFAEL_IMSS2021Sep 13, 2021

Hi, I'm checking this sample:

Canvas Slider Sample

What do I need to configure it to stop the slider play when I put the mouse over the slides?

Thanks for your help.

S
SemiColonWebSTAFFSep 14, 2021

Hello,

This is not enabled by default and requires minor customization. Find the following code in the js/plugins.swiper.js File:

autoplay: {
	delay: elAutoPlay,
},

and replace it with:

autoplay: {
	delay: elAutoPlay,
	pauseOnMouseEnter: true,
},

First, you will need to update the js/plugins.js File by finding the js/plugins.swiper.js Functions inside this File and then update it with the codes provided by us. Then minify this File using this Minifier: https://javascript-minifier.com/ .

We have already done this for you. You can consider using the File attached to this Reply.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard