baianat / hooper

🎠 A customizable accessible carousel slider optimized for Vue
https://baianat.github.io/hooper/
MIT License
713 stars 133 forks source link

Custom CSS classes #173

Open Pirosauro opened 4 years ago

Pirosauro commented 4 years ago

We have a design with a lot of different carousels. Every slide can also have different styles. This force us to:

Solution Would be great to be possibile to customize (append ?) hooper's classes. Something like this: <hooper cssClass="hooper-main"> <slider cssClass="hooper-slide-yellow">

patrickdaley commented 4 years ago

You don't need to do that with Vue (unless you're dealing with functional components). You can just do this:<hooper class="hooper-main">