Step 3: Write an additional ID for the slider-component tag:
Step 4: CSS: Style your slide as you want.
#carousel {
overflow: hidden;
width: 100%; /* Đảm bảo slider chiếm toàn bộ chiều rộng của container cha */
}
#carousel ul {
display: flex;
transition: transform 0.5s ease; /* Hiệu ứng chuyển động */
}
Step 5: Javascript: Use JavaScript to perform automatic carousel effects. Here’s an example of how to do this: it can be written in the global.js or theme.js file
Hi, I have used your code but this does not seem to work. I am using the dawn theme v12,0.
What happens with my feature collection is that the whole collection just moves to the side every 3 seconds. After a while it is completely of my website and then come back. There is no scrolling on the carrousel itself.