diff --git a/src/components/Dot/Dot.svelte b/src/components/Dot/Dot.svelte index 0b6d62d..738a10e 100644 --- a/src/components/Dot/Dot.svelte +++ b/src/components/Dot/Dot.svelte @@ -1,33 +1,14 @@ @@ -39,20 +20,33 @@ justify-content: center; height: 16px; width: 16px; + :root { + --sc-dot-size: 6px; + --sc-active-dot-size: 8px; + --sc-dot-size-animation-time: 250ms; } .sc-carousel-dot__dot { background-color: var(--sc-color-rgb-light); border-radius: 50%; display: inline-block; opacity: 0.5; - transition: opacity 100ms ease; + transition: + opacity 100ms ease, + height var(--sc-dot-size-animation-time) ease, + width var(--sc-dot-size-animation-time) ease; cursor: pointer; -webkit-tap-highlight-color: transparent; + + height: var(--sc-dot-size); + width: var(--sc-dot-size); } .sc-carousel-dot__dot:hover { opacity: 0.9; } .sc-carousel-dot__dot_active { opacity: 0.7; + + height: var(--sc-active-dot-size); + width: var(--sc-active-dot-size); } \ No newline at end of file diff --git a/src/components/Dots/Dots.svelte b/src/components/Dots/Dots.svelte index c9374b7..7ddcf7d 100644 --- a/src/components/Dots/Dots.svelte +++ b/src/components/Dots/Dots.svelte @@ -32,8 +32,9 @@