Chat GPT prompt : generate Javascript slider

It took me 5 prompts to get a marquee text slider working continuously. Interesting, but what about power consumption ? here are the 5 prompts that finally generated what I need, a nice smooth continuous cycling text scroller.

- can you make a div with 5 texts automatically sliding, with javascript
- nice, can you make  previous slide move left to position right 100% and next slide move left too
- no just the feeling of all moving the same direction
- can you just make the last slide slide to the first to make continuous sliding
- can the transition from last slide to first slide be smooth tool
- ha does not loop, empty after 1
- perfect , thks
To top