Hi @fkoomek ,
Do you mean disabling the layer animations? You can do that like this: https://smartslider3.helpscoutdocs.com/article/1550-disable-layer-animations
Or if you mean the autoplay or background animations, you should rather create a mobile only slider: https://smartslider3.helpscoutdocs.com/article/1473-how-to-disable-the-slider-on-mobile#different
which doesn’t have the settings you don’t want to have on mobile.
Thanks.
I mean autoplay. I know about the possibility of creating a different slider for mobile but for some reason, I would prefer to disable the animation by some script.
Plugin Support
Laszlo
(@laszloszalvak)
Hi @fkoomek!
We do not suggest custom coding and neither support it.
However with a JavaScript code like:
jQuery( document ).ready(function() {
var md = new MobileDetect(window.navigator.userAgent);
if(md.mobile()){
window['n2-ss-43'].controlAutoplay.disable();
}
});
the Slider Autoplay can be disabled on mobile devices. The ID: 43 must be replaced with the ID of your slider, what you can find like:
https://smartslider3.helpscoutdocs.com/article/1219-slider-and-slide-id#sliderid
And the code can be inserted at your Slider Settings>Developer tab>JavaScript callbacks:
https://smartslider3.helpscoutdocs.com/article/1294-slider-settings-developer
Best regards,
Laszlo.
-
This reply was modified 7 years, 6 months ago by
Laszlo.
Great, working!
Thank you so much 😉