How to scale active element #582
-
When try to scale active element So how i can add scale, without breaks library work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @MariuszRogowicz, You can use the approach in the scale example in the docs. It adds an additional element inside the slide element and scale that instead: <div class="embla">
<div class="embla__container">
<div class="embla__slide">
<div class="embla__slide__scale" <!-- scale this element -->>
Slide content here
</div>
</div>
...more slides
</div>
</div> Note that if you have loop enabled, scaling slides can break the carousel unless you follow the scale example approach in the docs. Best, |
Beta Was this translation helpful? Give feedback.
Hi @MariuszRogowicz,
You can use the approach in the scale example in the docs. It adds an additional element inside the slide element and scale that instead:
Note that if you have loop enabled, scaling slides can break the carousel unless you follow the scale example approach in the docs.
Best,
David