EFFECT79Cardverse Install free

Components / Products

Spotlight

A row of products under a real light cone; the centre card pops with a call to action.

Or drop photos / videos on the demo. They stay in your browser — nothing is uploaded.

Install

Terminal
npm install @effect79/cardverse

Usage

HTML
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>

<e79-spotlight theme="light">
  <script type="application/json">
    [
      {
        "title": "Lumen Desk",
        "kicker": "Lighting",
        "desc": "A lamp that follows the sun across your desk.",
        "cta": "Learn more",
        "media": "/img/img/g4.webp",
        "link": "/your/page"
      },
      {
        "title": "Halo Speaker",
        "kicker": "Audio",
        "desc": "Room-filling sound from a ring the size of a plate.",
        "cta": "Learn more",
        "media": "/img/img/g6.webp",
        "link": "/your/page"
      }
    ]
  </script>
</e79-spotlight>

WordPress, Webflow, Shopify, Framer, Wix: use the HTML tab in a custom-code / embed block. More in the Docs.

Set the look visually: open Spotlight in the Studio, change anything, then Copy code. Only changed settings are exported.

Content

A list of rows in the tag's JSON <script>, the items property, or src="content.json". Rows missing a required field are skipped, never break the page; an empty list shows a friendly placeholder.

FieldRequiredWhat it does
mediayesImage.
titlenoTitle.
kickernoSmall line above.
descnoDescription.
linknoWhere the card's call to action goes: /page, https://…, mailto:…. Unsafe URLs are dropped.
targetno_blank opens in a new tab.
ctanoButton text (a sensible default otherwise).
videonomp4/webm that plays while the card is in focus. Never with reduced motion.
posternoFirst frame for the video.

Give a row a link and its call to action goes there (on this demo, links point to this section). Add target: "_blank" for a new tab and cta for the button text. Without a link the call to action is hidden — never a button that does nothing. A video (mp4/webm) plays muted and looping while that card is in focus, open or hovered, and never with reduced motion.

Photos that fit every card. Add focus: "30% 20%" to keep a face or product in view when the card crops the photo, and mediaTall (plus videoTall) for a portrait version: each card shows the picture made for its shape, the way streaming apps do. More.

Settings

Pass only what you change, as JSON in the config attribute or the config prop. Every value is validated and clamped.

KeySettingDefaultRange / options
Row
popCentre pop1.261 – 1.6
sideScaleSide scale0.80.5 – 1
overlapOverlapSide cards slide under each other.0.160 – 0.6
gapGap160 – 60 px
headroomHeadroomHow far the centre card rises.160 – 60 px
reachVisible each side31 – 5
edgeFadeEdge fade120 – 30 %
Light
coneLight coneA real beam: light falls off across the neighbours.truetrue / false
coneStrengthLight strength0.620 – 1
dimSide dim0.50 – 0.9
cropSide cropSide cards show a narrower slice of their image.0.140 – 0.4
frameFrametruetrue / false
frameGapFrame gap72 – 16 px
Cards
cardWidthWidth226160 – 320 px
cardRatioHeight ratio1.261 – 1.6
cardRadiusCorner radius180 – 32 px
showCtaTitle & buttontruetrue / false
Behaviour
loopLooptruetrue / false
autoplayAutoplayfalsetrue / false
intervalInterval3.61.5 – 8 s
Motion
responseSpeedTime a move takes to settle.0.50.18 – 1.4 s
bounceBounceOvershoot when a card snaps into place.0.120 – 0.6
sensitivityDrag sensitivity10.3 – 2.5
momentumMomentumHow far a flick carries.10 – 2

Theming

theme="light" | "dark" | "auto". Override tokens on the element, e.g. e79-spotlight { --accent: #ff5a36; --bg: #0b0b0f; --e79-font: 'Inter' }. Methods: el.replay(), el.pin('state'). States: idle.

Also for products