I have created slider which move vertically like marquee tag of html its working fine but issue is when end reaches its suddenly start from beginning with jumps its weird i want it move to continuously whiteout break or jump in the middle here is my code that ma using, i have used yoyo:true but its start from bottom to top and when end reaches its again slide from top to bottom. Please visit this page to see output of slider https://kendry.ai/homepage/
$(function () {
const loop = document.getElementById("slider-v");
console.log(loop);
const loopAnim = new TimelineMax({
repeat: -1,
yoyo: true,
});
let loopItem = (window.innerWidth, loop.children[0]);
loop.appendChild(loopItem.cloneNode(true));
loop.appendChild(loopItem.cloneNode(true));
loop.appendChild(loopItem.cloneNode(true));
loopAnim
.to(loop, 30, { ease: Power0.easeNone, yPercent: -66.66666 })
.to(loop, 0, { ease: Power0.easeNone, y: 0 });
});