Interactive Labs

Comprehensive live interactive playground showcasing every placement, animation physics, gesture, and feature in wisspop.

1. Anchored to a Button (6 Placements)

The panel originates from the trigger button and expands towards the chosen placement. The align option controls the cross-axis.

Click any placement button:

2. From a Circular Button (Floating FAB)

The circular button's radius is computed automatically. The '+' icon flies smoothly to become the modal heading.

3. Expand in Place (placement: 'origin')

The panel shares the trigger's center point and expands right in place without moving towards the screen center.

4. Perimeter Drawers (4 Edges)

drawer-left, drawer-right, drawer-top, drawer-bottom span the full edge length and dock seamlessly.

5. Flying Text (PillModal in Center & Origin)

The label 'Crear cuenta' flies across the screen, smoothly interpolating font size, line-height, and position onto [data-wisspop-title].

Center modal:
Origin modal:

6. Flying Element Formats (Text, Icon, Image)

Core automatically chooses how to scale: text interpolates font-size; SVG icons and images interpolate width/height ('box' mode).

7. Advanced Real-World Use Cases

Production-ready patterns: checkout flow, command palette with input sync, team invite, and danger confirmation.

8. Gesture Dismissal (Swipe to Close)

Drag the panel in any direction with mouse or touch. Exceeding the threshold dismisses the modal along that trajectory.

9. FLIP — Shared Elements (Card Expansion)

Multiple elements with data-flip-id (photo, title, card container) smoothly morph into full detail view.

Gato Viajero

Travelling Cat

Click to expand FLIP card

10. Elastic Dropdown Menu (4 Directions)

Snappy scaleY elastic bounce animation configured in 4 directions.

11. Content Transition Modes (contentAnimation)

Select the inner content entrance transition while the outer morph box smoothly expands.

12. Staggered Cascade Entrance (contentStagger)

contentStagger: true automatically coordinates a 30ms progressive entrance for all direct child elements.

13. GSAP Acceleration Physics (ease / closeEase)

Test custom GSAP physics curves for open and close transitions.

14. Mobile Performance (fullscreenOnMobile)

Automatically adapts to full screen on screens < 640px, disables heavy blur, and frees GPU VRAM after transition.

15. Fullscreen Viewport (100vw × 100vh)

Expands the modal to 100% viewport width and height starting from the trigger button.

16. Live Scroll Follow & Tracking

Anchored modals (top, bottom, left, right, origin) track their origin trigger during scroll seamlessly.

💡 Open any anchored modal from section 1 or 3 and scroll the page to see live origin tracking in action.

17. Reactive Height (resync & changeView)

Demonstrates live dynamic height morphing: resync() on error toggles and changeView() on subview switches.

💡 Open the 'Create account' modal in section 5 and click 'Mostrar un error' or 'Ya tengo cuenta' to see live height morphing.
Copied AI Prompt to clipboard!