Half a year ago I created a slider/carousel for Hugo, based on this codepen. Today I updated the code and fixed a bug (the bullets did not show the right position on mobile while swiping). The code now has an ’event listener’ to detect scrolling and I added a debounce function from Chris Ferdinandi, who happens to be an avid Hugo user as well. It should now be responsive and buttery smooth.| Hugo Codex
A lot of websites have a slider (or carousel). Most of them in the header. The big question is: Should I add a carousel to my Hugo website? This is something I cannot decide for you. If you decide you need one, I added a decent one under Add ons > Slider/carousel in the main menu. A demo is shown below: 1 2 3 4 ‹ › The carousel is based on a carousel with CSS scroll snap that I created earlier.| Hugo Codex