Components / Work
Fan Carousel
A fan of cards around a big centre card that expands into details.
Install
npm install @effect79/cardverseUsage
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>
<e79-fan-carousel theme="light">
<script type="application/json">
[
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
]
</script>
</e79-fan-carousel>import { FanCarousel } from '@effect79/cardverse/react';
const items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
export default function Section() {
return <FanCarousel 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 { FanCarousel } from '@effect79/cardverse/react';
const items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
export default function Page() {
return <FanCarousel theme="light" items={items} />;
}<script setup>
import '@effect79/cardverse'; // registers <e79-fan-carousel> (once, anywhere in your app)
const items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-fan-carousel 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": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-fan-carousel theme="light" :items.prop="items" :config.prop="config" />
</template><script>
import '@effect79/cardverse'; // registers <e79-fan-carousel>
const items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<e79-fan-carousel theme="light" {items} {config}></e79-fan-carousel>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@effect79/cardverse'; // registers <e79-fan-carousel>
@Component({
selector: 'app-root',
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA], // lets Angular accept <e79-…> tags
template: `<e79-fan-carousel theme="light" [items]="items" [config]="config"></e79-fan-carousel>`,
})
export class AppComponent {
items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
config = {}; // from the Studio
}---
const items = [
{
"title": "Field Notes",
"tag": "Editorial",
"desc": "A quiet magazine system with one grid and three type sizes.",
"chips": [
"Editorial",
"Print"
],
"media": "/img/img/g1.webp",
"year": "2022",
"link": "/your/page"
},
{
"title": "Night Market",
"tag": "Campaign",
"desc": "Posters and motion for a food festival that runs after dark.",
"chips": [
"Campaign",
"Motion"
],
"media": "/img/img/g3.webp",
"year": "2023",
"link": "/your/page"
}
];
const config = {}; // from the Studio
---
<e79-fan-carousel theme="light" config={JSON.stringify(config)}>
<script type="application/json" is:inline set:html={JSON.stringify(items)}></script>
</e79-fan-carousel>
<script>
import '@effect79/cardverse'; // registers <e79-fan-carousel> 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 Fan Carousel 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. |
desc | no | Description. |
chips | no | Up to 3 chips. |
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 |
|---|---|---|---|
| Fan | |||
spread | SpreadDistance from the focus card to its first neighbour. | 150 | 60 – 260 px |
falloff | FalloffLower = outer cards bunch up behind each other. | 0.84 | 0.5 – 1 |
rotation | Rotation | 7 | 0 – 20 ° |
arch | ArchHow far the outer cards drop. | 24 | 0 – 80 px |
rise | Focus rise | 22 | 0 – 60 px |
reach | Visible each side | 3 | 1 – 5 |
| Cards | |||
cardWidth | Width | 214 | 150 – 300 px |
cardRatio | Height ratio | 1.3 | 1 – 1.6 |
cardRadius | Corner radius | 22 | 0 – 36 px |
focusScale | Focus scale | 1.16 | 1 – 1.5 |
neighbourScale | Neighbour scale | 0.86 | 0.6 – 1 |
shade | Side shadeCards further from the focus get darker. | 0.32 | 0 – 0.8 |
| Behaviour | |||
loop | Loop | true | true / false |
dots | Dots & arrows | true | true / false |
peek | Hover previewHovering a side card lifts it and shows its name. | true | true / false |
autoplay | AutoplayAdvances while nobody is interacting. | false | true / false |
interval | Interval | 3.4 | 1.5 – 8 s |
| Expand | |||
openScale | Open scaleSize of the card when it is expanded. | 1.42 | 1.1 – 1.8 |
| Motion | |||
response | SpeedTime a move takes to settle. | 0.56 | 0.18 – 1.4 s |
bounce | BounceOvershoot when a card snaps into place. | 0.16 | 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-fan-carousel { --accent: #ff5a36; --bg: #0b0b0f; --e79-font: 'Inter' }. Methods: el.replay(), el.pin('state'). States: idle open.