Components / Work
Card Wheel
Up to 60 cards standing on a tilted wheel: throw it, filter it, open a card.
Install
npm install @effect79/cardverseUsage
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>
<e79-card-wheel theme="light">
<script type="application/json">
[
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
]
</script>
</e79-card-wheel>import { CardWheel } from '@effect79/cardverse/react';
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
export default function Section() {
return <CardWheel theme="light" items={items} config={{ /* from the Studio */ }} />;
}// app/page.jsx — a Server Component can render it; the wrapper is a client component
import '@effect79/cardverse/fonts.css'; // once, e.g. in app/layout.jsx
import { CardWheel } from '@effect79/cardverse/react';
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
export default function Page() {
return <CardWheel theme="light" items={items} />;
}<script setup>
import '@effect79/cardverse'; // registers <e79-card-wheel> (once, anywhere in your app)
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-card-wheel theme="light" :items.prop="items" :config.prop="config" />
</template>// vite.config.js — tell Vue that <e79-…> tags are web components
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue({ template: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('e79-') } } })],
});// nuxt.config.ts — then use the same tag inside <ClientOnly> … </ClientOnly>
export default defineNuxtConfig({
vue: { compilerOptions: { isCustomElement: (tag) => tag.startsWith('e79-') } },
});
// plugins/cardverse.client.ts
import '@effect79/cardverse';
export default defineNuxtPlugin(() => {});<script setup>
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-card-wheel theme="light" :items.prop="items" :config.prop="config" />
</template><script>
import '@effect79/cardverse'; // registers <e79-card-wheel>
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<e79-card-wheel theme="light" {items} {config}></e79-card-wheel>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@effect79/cardverse'; // registers <e79-card-wheel>
@Component({
selector: 'app-root',
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA], // lets Angular accept <e79-…> tags
template: `<e79-card-wheel theme="light" [items]="items" [config]="config"></e79-card-wheel>`,
})
export class AppComponent {
items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
config = {}; // from the Studio
}---
const items = [
{
"title": "Meridian",
"tag": "Identity",
"desc": "Identity and site for a research studio.",
"media": "/img/img/knot.webp",
"year": "2019",
"link": "/your/page"
},
{
"title": "Halcyon",
"tag": "Product",
"desc": "A calm alarm clock that wakes you with light.",
"media": "/img/img/orbs.webp",
"year": "2020",
"link": "/your/page"
}
];
const config = {}; // from the Studio
---
<e79-card-wheel theme="light" config={JSON.stringify(config)}>
<script type="application/json" is:inline set:html={JSON.stringify(items)}></script>
</e79-card-wheel>
<script>
import '@effect79/cardverse'; // registers <e79-card-wheel> in the browser
</script>WordPress, Webflow, Shopify, Framer, Wix: use the HTML tab in a custom-code / embed block. More in the Docs.
Set the look visually: open Card Wheel 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.
| Field | Required | What it does |
|---|---|---|
media | yes | Image. |
title | no | Title. |
tag | no | Category (the filter is built from these). |
desc | no | Description. |
year | no | Year. |
link | no | Where the card's call to action goes: /page, https://…, mailto:…. Unsafe URLs are dropped. |
target | no | _blank opens in a new tab. |
cta | no | Button text (a sensible default otherwise). |
video | no | mp4/webm that plays while the card is in focus. Never with reduced motion. |
poster | no | First frame for the video. |
Links & 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.
| Key | Setting | Default | Range / options |
|---|---|---|---|
| Look | |||
caption | Caption | true | true / false |
matte | MattePaper border around each image. | 0.05 | 0 – 0.14 |
shade | Depth shadeCards at the back of the wheel get darker. | 0.3 | 0 – 0.8 |
filters | Category filter | true | true / false |
| Wheel | |||
cards | Cards | 52 | 12 – 60 |
radius | Radius | 360 | 160 – 520 px |
tilt | TiltHow far the camera looks down at the wheel. | 18 | 4 – 70 ° |
roll | Roll | -12 | -35 – 35 ° |
focusAngle | Focus positionWhere on the wheel the active card sits. Around ±60° its face turns to you. | -58 | -90 – 90 ° |
lean | Card leanCards lean outward (+) or inward (−). | 0 | -30 – 30 ° |
spiral | SpiralEach card a little higher than the last: the ring becomes a coil. | 0 | 0 – 14 px |
perspective | Perspective | 1500 | 600 – 3000 px |
| Cards | |||
cardWidth | Width | 118 | 70 – 220 px |
cardRatio | Height ratio | 1.34 | 0.8 – 1.8 |
cardRadius | Corner radius | 5 | 0 – 18 px |
rise | Front card riseThe card at the front lifts out of the wheel. | 0.28 | 0 – 0.8 |
pullOut | Front card pull-outThe selected card slides out of the wheel toward you, so it is never hidden. | 0.7 | 0 – 1.2 |
hoverLift | Hover lift | 0.12 | 0 – 0.4 |
| Throw | |||
snap | Snap to cardOff = free spin that slows down naturally. | false | true / false |
idleSpin | Idle spin | false | true / false |
spinSpeed | Spin speed | 0.6 | 0.1 – 3 /s |
| Zoom | |||
zoomScale | Zoom sizeSize of a card brought to you. | 2.1 | 1.4 – 3 |
| Motion | |||
response | SpeedTime a move takes to settle. | 0.6 | 0.18 – 1.4 s |
bounce | BounceOvershoot when a card snaps into place. | 0.08 | 0 – 0.6 |
sensitivity | Drag sensitivity | 1 | 0.3 – 2.5 |
momentum | MomentumHow far a flick carries. | 1 | 0 – 2 |
Theming
theme="light" | "dark" | "auto". Override tokens on the element, e.g. e79-card-wheel { --accent: #ff5a36; --bg: #0b0b0f; --e79-font: 'Inter' }. Methods: el.replay(), el.pin('state'). States: idle zoomed.