[Feat]: Add option to base AutoHeight on slides in view #1215
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidjerleke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Which variants of Embla Carousel are relevant to this feature request?
Feature description
The
auto-heightplugin already supports using slides in view to calculate height via theheightEvent: 'slidesinview'option. However, this isn't clearly documented.I propose we clarify this in the plugin documentation (e.g., README or docs site), with an example and an explanation of when to use each
heightEventmode:select: Uses the selected snap groupslidesinview: Uses all currently visible slidesThis would help developers understand how to enable this behavior without having to dive into plugin source code.
Additional Context
Here's the option from Options.ts:
And in the plugin:
Before submitting
Beta Was this translation helpful? Give feedback.
All reactions