generated from daviddarnes/component-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
featureNew feature or requestNew feature or request
Description
Presentation tools often allow multiple-step slides, to reveal additional content, or do some other animation. Ideally this would work with the same 'next/previous' triggers that navigate slides, so that it would work with a simple remote clicker.
I could imagine either storing this information as an attribute on the slide element:
<slide-item id="slide-3" data-internal-steps="2">…</slide-item>Or auto-generating that count based on attributes inside a slide:
<slide-item id="slide-3">
<ul>
<li>visible by default</li>
<li data-step="1">revealed on first internal 'next'</li>
<li data-step="2">revealed on second 'next'</li>
</ul>
</slide-item>We could keep state in the URL with a query parameter. I expect that moving forward takes you through each step of each slide, but moving backwards…
- If there are previous steps on the current slide, reverse through those steps
- Otherwise, go to the previous slide (initial state, not final step)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request