Docs
Install, use, theme. Every component page has its own settings and content reference.
Premium, spring-animated card components by EFFECT79. Plain JavaScript Web Components. They work on any website (HTML, WordPress, Webflow, Shopify, Vue, Nuxt, Svelte, Angular, Astro) and come with React / Next.js wrappers. No dependencies.
Live demos and the visual Studio (tweak every setting, then copy the code): https://cardverse.effect79.com
| Tag | React | What it does |
|---|---|---|
<e79-bookmark-card> |
BookmarkCard |
Colour comes from the artwork. Hover to light it up. |
<e79-expanded-cards> |
ExpandedCards |
Slivers that open on hover. The image is uncovered from its centre and follows the cursor. |
<e79-spotlight> |
SpotlightCarousel |
Swipe, scroll or use arrows. The light follows the centre card. |
<e79-arc-focus> |
ArcFocus |
Drag, scroll or use arrows. Click the centre card for details. |
<e79-orbit-ring> |
OrbitRing |
Same cards, four layouts. Click the front card to flip it. |
<e79-focus-reveal> |
FocusReveal |
Hover a word: it stays sharp, the rest of the text softens. Linked words show a card. |
<e79-fluid-cursor> |
FluidCursor |
Move the cursor: a real fluid follows it. Reveal mode wipes a hidden photo into view. |
<e79-meshflow> |
MeshFlow |
A grid that bends toward the cursor. Cards press wells into it; click for a ripple. |
<e79-card-wheel> |
CardWheel |
Click a card to open it. Drag to throw, scroll or use ← →. |
<e79-fan-deck> |
FanDeck |
Swipe or use arrows. Click the centre card to flip it, drag it up to pull it out. Shuffle and deal. |
<e79-folder-card> |
FolderCard |
Hover to peek, click to open, pick a document. |
<e79-curve-gallery> |
CurveGallery |
Drag, flick or scroll. Positive curve bends away, negative wraps around you. |
<e79-fan-carousel> |
FanCarousel |
Swipe, scroll or use the dots. Hover a side card to preview it, click the centre card to expand. |
<e79-rolodex> |
Rolodex |
Scroll or drag the wheel. Jump with the A–Z index. |
Install
Script tag (no build step):
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>
npm:
npm install @effect79/cardverse
import '@effect79/cardverse'; // every component
import '@effect79/cardverse/components/e79-fan-deck'; // or just the ones you use
Use it in HTML
<e79-expanded-cards theme="dark" config='{"height": 420, "autoplay": true}'>
<script type="application/json">
[
{ "title": "Our Studio", "kicker": "About", "desc": "Small team, big ideas.", "media": "/img/studio.jpg", "link": "/about" },
{ "title": "Projects", "kicker": "Work", "desc": "Selected client work.", "media": "/img/work.jpg", "link": "/work", "video": "/video/work.mp4" }
]
</script>
</e79-expanded-cards>
- Content: a JSON
<script>inside the tag, theitemsproperty (el.items = [...]), orsrc="content.json". A row that is missing a required field is skipped with a console warning. It never breaks the page. - Settings: the
configattribute or property (JSON). Pass only what you change. Every value is checked and clamped. Set them visually in the Studio and copy the result. - Theme:
theme="light" | "dark" | "auto"(defaultautofollows the visitor's system). - Methods:
el.replay()plays the entrance again.el.pin('open')holds a state,el.pin(null)returns to live.
Links and video on any card
Every content row can carry:
| Field | Example | |
|---|---|---|
link |
"/work/aurora", "https://…", "mailto:…" |
The card's call to action goes here. javascript: and other unsafe URLs are dropped. |
target |
"_blank" |
Opens in a new tab (with rel="noopener"). |
cta |
"View case study" |
Button text (each component has a sensible default). |
video |
"/video/clip.mp4" |
Plays (muted, looping) while that card is in focus, open or hovered. Never plays with reduced motion. |
poster |
"/img/clip.jpg" |
First frame for the video. |
focus |
"30% 20%", "left top", { "x": 30, "y": 20 } |
The point of the photo that stays in view when a card crops it (a face, a product). Default: the centre. |
mediaTall |
"/img/hero-portrait.jpg" |
A portrait version of media. Used wherever the card's picture is taller than wide (tall cards, phone layouts); media everywhere else. |
videoTall |
"/video/clip-portrait.mp4" |
The same for video. |
A call to action without a link is hidden. A button never does nothing.
Photos that fit every card (art direction)
Cards come in many shapes, so one photo is often cropped. Two ways to keep it looking right:
- Do nothing: components with large pictures (Expanded Cards, Fluid Cursor) use
fit: "auto". A photo that would lose more than about 10% is shown whole, over a soft blur of itself. - Netflix-style: give each row a
focuspoint, and a portraitmediaTall/videoTallnext to the landscapemedia/video. Each card then shows the picture made for its shape, cropped around the subject. Good sizes: landscape 1920×1280, portrait 1080×1440.
React
import { ExpandedCards } from '@effect79/cardverse/react';
export default function Services() {
return <ExpandedCards theme="dark" config={{ height: 420 }} items={[{ title: 'Our Studio', media: '/img/studio.jpg', link: '/about' }]} />;
}
Next.js (App Router)
The components animate in the browser, so the wrappers are client components ('use client' is already inside). They are safe to render on the server: nothing touches window until the page loads in the browser.
// app/page.jsx (a Server Component can render it directly)
import { FanDeck } from '@effect79/cardverse/react';
export default function Page() { return <FanDeck items={deck} />; }
Fonts with a bundler (Next.js, Vite): add import '@effect79/cardverse/fonts.css' once, or set your own font (see Theming).
Frameworks
import '@effect79/cardverse' registers every tag once, in the browser. Then pass items and config as properties (objects, not strings). Every component page on the website has a copy-ready tab for each of these; all of them are built and checked in a real app before each release.
Vue 3 — tell Vue the tags are web components, then use .prop:
// vite.config.js
vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('e79-') } } })
<e79-expanded-cards theme="light" :items.prop="items" :config.prop="{ height: 420 }" />
Nuxt 3 — same isCustomElement under vue.compilerOptions in nuxt.config.ts, load the package in plugins/cardverse.client.ts (import '@effect79/cardverse'), and put the tag inside <ClientOnly>.
Svelte 5 / SvelteKit — works as is: <e79-expanded-cards {items} {config}></e79-expanded-cards>.
Angular 17+ — add schemas: [CUSTOM_ELEMENTS_SCHEMA] to the component and bind properties: [items]="items" [config]="config".
Astro — static HTML with a JSON child, plus a client script:
<e79-expanded-cards theme="light" config={JSON.stringify(config)}>
<script type="application/json" is:inline set:html={JSON.stringify(items)}></script>
</e79-expanded-cards>
<script>import '@effect79/cardverse';</script>
Server templates (Django, Rails, Laravel Blade, PHP, Jinja, Go, ASP.NET) — use the HTML version: the script tag, then print your data as JSON inside <script type="application/json">. Escape it with your framework's JSON helper (json_script in Django, @json in Blade, json_encode in PHP).
WordPress · Webflow · Shopify · Framer · Wix · Squarespace
Add the script tag in the site's custom-code settings (head or footer), then paste the component tag with its JSON into an HTML / Embed / Custom code block. In Framer use an Embed (HTML) component; in Wix use Embed code → Custom element / HTML iframe.
Theming
Everything is scoped to the component. The library never styles your page, and your CSS variables don't leak in. Override tokens on the element:
e79-fan-deck {
--accent: #ff5a36; /* buttons, focus rings */
--bg: #0b0b0f; /* match your page background */
--e79-font: 'Inter', sans-serif; /* use your font (Geist is used by default) */
}
Tokens: --bg --bg-2 --surface --raise --ink --ink-2 --mut --line --line-2 --accent --accent-ink --accent-soft --shadow, fonts --e79-font --e79-font-display --e79-font-mono.
Accessibility and motion
- Keyboard: arrows, Home / End, Enter, Esc.
- Screen readers: labels, live announcements, hidden panels are
inert. - Contrast checked with axe-core in light and dark.
prefers-reduced-motion: states change without animation and videos don't play.- Animation loops sleep when nothing moves.
Browser support
Current Chrome, Edge, Firefox and Safari (desktop + iOS/Android). Fluid Cursor needs WebGL. Without it, it falls back to a light 2D version.
License
Free (MIT): see LICENSE. Version 1.0.0.