Swaps define how new content replaces or is inserted into existing DOM elements. WSX provides flexible swap strategies with timing and animation controls.
<!-- Scroll to top --><div wx-swap="innerHTML show:top">Content</div><!-- Scroll to bottom --><div wx-swap="innerHTML show:bottom">Content</div><!-- Scroll to element --><div wx-swap="innerHTML show:window">Content</div><!-- Smooth scrolling --><div wx-swap="innerHTML show:top scroll:smooth">Content</div>