You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I don't understand how active the Intersection
https://splidejs.com/extensions/intersection/
I don't uinderstand how to add the extension to splide
I have added these three files
https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/css/splide.min.css
https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/js/splide.min.js
https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/js/splide-extension-intersection.min.js
I use this js code
` var splide = new Splide( '.splide', {
type : 'fade',
rewind: true,
pauseOnHover: true,
speed: 400,
interval: 4000,
autoplay: 'pause',
intersection: {
inView: {
autoplay: true,
},
outView: {
autoplay: false,
},
},
});
in that example there isn't the code example, and it should be very usefull for all
I've also tried this code but it doesn't work
`new Splide( '#splide' ).mount( window.splide.Extensions );
new Splide( '#splide', {
autoplay: 'pause',
intersection: {
inView: {
autoplay: true,
},
outView: {
autoplay: false,
},
},
} );`
thanks
bye
Beta Was this translation helpful? Give feedback.
All reactions