Closed hmaesta closed 2 years ago
Seems like a good idea, but I'm not sure about echoing out a style block with the css tag, especially since it breaks scoping.
I would suggest that a single property where you pass in a json object of style parameters, which are in turn, converted to css variables and applied to the element, would be a better solution.
First of all, thank you for contributing to Svelte environment. That's the third component I use from Beyonk 😊
.
Small improvements:
dots
class to<ul>
.dots
using already definedduration
andeasing
.
Features:
Change default dots colors
That's for plug-and-play users that just want to override default white color.
Added variables:
dotsColor
rgba(255,255,255,0.5)
dotsHoverColor
rgba(255,255,255,0.85)
dotsActiveColor
rgba(255,255,255,1)
How to use:
That will keep default CSS and change just dots background colors.
.
Change dots classes
That's mostly for Tailwind CSS users or CSS-hackers.
Added variables:
dotsWrapperClass
<ul>
dotsClass
<li>
dotsActiveClass
<li>
when it'sactive
How to use:
When using
dotsClass
ordotsActiveClass
default CSS wont be loaded – otherwise it would always overrule.