Hero Carousel
A simple hero carousel I made for myself to re-use parts of and customise for client sites. Has keyboard navigation support and basic swipe handling. Pretty customisable through the HTML markup and CSS. My base setup is noted below.
Change things up however you like, suggestions/contributions welcome.
Demo
https://hero-carousel.netlify.app/
Installation
npm install hero-carousel
Usage
Javascript
; document 5000;
HTML
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. Find out more Donec odio. Quisque volutpat mattis eros. Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Find out more Nullam malesuada erat ut turpis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas auguae, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus. Find out more
CSS