Agents

Loading the live block…LIVE · TRY IT
DRAGPROKIND SWIPE-DECK

Swipe deck

A deck of cards. Fling the top one left or right and the next rises to take its place; it loops forever. Drag blocks: sliders, dials, decks and lists you move by hand.

Open Drag blocks in Optic ↗

Add it with your AI

With Optic connected, your agent calls add_block and the Swipe deck lands in your file as real layers, in your file’s colors and corners, as one change you can undo. Paste this to it:

In my Optic file, add a Swipe deck block (add_block, kind "swipe-deck") where it fits the design, then restyle its parts (Card) to match the frame around it. Keep each part's name so it keeps working. Settings you can change: fling.

Make it yours without code

  1. Restyle any part. Click it on the canvas and change its color, size, text or corners.
  2. Tune how it behaves. Select the block and open Interaction in the right panel.
  3. Try it. Press Interact (X) in Optic. Run, Build and your site play it as real HTML and CSS.

Parts

The interaction finds these layers by name. Restyle them freely and keep the names.

  • Card

Settings

SettingKey for your agent
Fling distancefling

More drag blocks

All 25 blocks, prompts and guides →
./archive — end of page

Earn your
stripes.

An independent Archive of exceptional digital design. Selected by editors, shown at full resolution, credited to the people who made it.

Checking systems