Creates sequential content navigation with Previous/Next buttons and automatic height adjustment. Perfect for step-by-step processes, tutorials, or any content that needs to be viewed sequentially. Automatically handles YouTube video pausing and smooth transitions.
Wrap sequential content sections in a container with class .swapper. Each direct child becomes a "slide" that can be navigated through using the automatically generated Previous/Next buttons.
.swapper - Main container for sequential contentThis is the first step in a sequential process.
Use the Previous/Next buttons to navigate between steps.
This is the second step.
The swapper automatically handles the navigation and maintains consistent height.
This is the final step.
The Next button will cycle back to the first step.
This slide has minimal content.
This slide has much more content to demonstrate how the swapper handles different heights.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
This slide has moderate content.
The swapper automatically adjusts the container height to accommodate the tallest slide.
Complete this activity after watching the video.
The swapper handles transitions between different types of content.
What did you learn from the video?
@ The video covered important concepts.
Welcome to this multi-step tutorial.
You have completed all the steps in this tutorial.
Use the Previous button to review any step.
.swapper becomes a navigable slide