Can someone assist me in creating an endless reviews carousel? I've been grappling with it for the past two days. Just so you know, I'm a newcomer to web development and my code may not be the cleanest.
Here's the code snippet:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
...
CSS:
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
...
Javascript:
var rightButton = document.querySelector('.btn-right');
var leftButton = document.querySelector('.btn-left');
...
I am aiming to develop a carousel for reviews that seamlessly loops when reaching either end. Your guidance on achieving this behavior is greatly appreciated. Thank you for your assistance.