← Prompt Lab

Spring Swipe Card Deck

Touch & Mouse Physics Card Stack for Mobile, Travel & EdTech
Travel · Mobile & Nav3.6 KB0 copies
SHARE
21 / PLAYGROUNDSpring Swipe Card Deck
BRAND COLORS
Fullscreen ↗

A tactile mobile-first swipeable card deck with drag-to-rotate physics, live SAVED / SKIP reveal stamps, stacked depth scaling, and one-tap undo — ready for travel discovery, flashcards, and product feeds.

Swipe DeckMobile GestureSpring Physics3.6 KB
// Drop the standalone spring-swipe-deck.html into /public/effects/spring-swipe-deck.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function SpringSwipeDeckEmbed() {
  return (
    <div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
      <iframe
        src="/effects/spring-swipe-deck.html"
        title="Spring Swipe Card Deck"
        className="h-full min-h-[480px] w-full border-0"
        loading="lazy"
      />
    </div>
  )
}

WHY THIS WORKS IN PRODUCTION

  • Real pointer-drag rotation physics with spring snap-back & fling dismissal
  • Dynamic SAVED / SKIP stamp opacity proportional to drag distance
  • Works great for Travel discovery, EdTech flashcards, Dating & E-Commerce
  • Touch-native (touch-action: none) in just 3.6 KB with zero dependencies

DROP-IN SPECS // WEB & MOBILE FIT

UI SLOTNav & Mobile
BEST USE CASEMobile Discovery Feed, Travel Itinerary Picker & EdTech Flashcards
IDEAL PLACEMENTMobile App Primary View or Interactive Onboarding Quiz
BUNDLE SIZE3.6 KB
DEPENDENCIESZero (Pointer + CSS)
MOBILE / TOUCHNative Finger Swipe
GPU WEIGHTLight · 60fps