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
varsplide=newSplide('.splide');varbar=splide.root.querySelector('.my-slider-progress-bar');// Updates the bar width whenever the carousel moves:splide.on('mounted move',function(){varend=splide.Components.Controller.getEnd()+1;varrate=Math.min((splide.index+1)/end,1);bar.style.width=String(100*rate)+'%';});```
AndtheconsolegivesanerrorUncaughtReferenceError: Splideisnotdefined<anonymous>http://localhost:3000/js/script.js:1
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
-
Please tell me how to add Carousel Progress to Vue Splide. I am using with Nuxt 3.
I add it to the template. But the scripts don't work.
Beta Was this translation helpful? Give feedback.
All reactions