Components / Proof
Bookmark
Stat cards that take their colour from the artwork and count up on hover.
Install
npm install @effect79/cardverseUsage
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>
<e79-bookmark-card theme="light">
<script type="application/json">
[
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
]
</script>
</e79-bookmark-card>import { BookmarkCard } from '@effect79/cardverse/react';
const items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
export default function Section() {
return <BookmarkCard 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 { BookmarkCard } from '@effect79/cardverse/react';
const items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
export default function Page() {
return <BookmarkCard theme="light" items={items} />;
}<script setup>
import '@effect79/cardverse'; // registers <e79-bookmark-card> (once, anywhere in your app)
const items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-bookmark-card 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 = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-bookmark-card theme="light" :items.prop="items" :config.prop="config" />
</template><script>
import '@effect79/cardverse'; // registers <e79-bookmark-card>
const items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<e79-bookmark-card theme="light" {items} {config}></e79-bookmark-card>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@effect79/cardverse'; // registers <e79-bookmark-card>
@Component({
selector: 'app-root',
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA], // lets Angular accept <e79-…> tags
template: `<e79-bookmark-card theme="light" [items]="items" [config]="config"></e79-bookmark-card>`,
})
export class AppComponent {
items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
config = {}; // from the Studio
}---
const items = [
{
"label": "Atlas Studio",
"media": "/img/img/rings.webp",
"caption": "Ideas move faster when the brief is clear.",
"stat": 3.4,
"statPrefix": "",
"statSuffix": "×",
"statDecimals": 1,
"statLabel": "faster reviews",
"link": "/your/page"
},
{
"label": "Ember Labs",
"media": "/img/img/blob.webp",
"caption": "Warm products people come back to.",
"stat": 182,
"statPrefix": "+",
"statSuffix": "%",
"statDecimals": 0,
"statLabel": "repeat visits",
"link": "/your/page"
}
];
const config = {}; // from the Studio
---
<e79-bookmark-card theme="light" config={JSON.stringify(config)}>
<script type="application/json" is:inline set:html={JSON.stringify(items)}></script>
</e79-bookmark-card>
<script>
import '@effect79/cardverse'; // registers <e79-bookmark-card> 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 Bookmark 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 |
|---|---|---|
label | yes | Brand / label on the tab. |
media | no | Artwork (the hover colour comes from it). |
caption | no | Caption. |
stat | no | The number (counts up). |
statPrefix | no | e.g. "+" |
statSuffix | no | e.g. "%", "×" |
statDecimals | no | 0–2 |
statLabel | no | What the number means. |
slides | no | Up to 5 short lines that slide on hover. |
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 |
|---|---|---|---|
| Content | |||
cards | Cards | 3 | 1 – 3 |
surface | SurfaceBase colour before hover. | "night" | night paper |
| Shape | |||
width | Width | 276 | 220 – 360 px |
aspect | Aspect | 0.7 | 0.6 – 0.9 |
radius | Corner radius | 22 | 6 – 36 px |
tabWidth | Tab width | 0.5 | 0.3 – 0.7 |
tabHeight | Tab height | 15 | 8 – 28 px |
tailDepth | TailThe bookmark notch at the bottom (0 = clean edge). | 0 | 0 – 30 px |
| Media | |||
mediaHeight | Height | 0.47 | 0.3 – 0.62 |
zoom | Hover zoom | 1.07 | 1 – 1.2 |
parallax | Parallax | 10 | 0 – 24 px |
| Hover | |||
fill | Colour fillFills the card with the artwork colour. | true | true / false |
fillStrength | Fill strength | 0.9 | 0.2 – 1 |
sheen | Light sweep | true | true / false |
sheenStrength | Sweep strength | 0.5 | 0.1 – 1 |
lift | Lift | 10 | 0 – 24 px |
tilt | 3D tilt | 7 | 0 – 16 ° |
| Stat & slides | |||
countUp | Count upNumber counts up when the card appears and on hover. | true | true / false |
countDuration | Count time | 1.3 | 0.4 – 3 s |
autoplay | Autoplay slidesSlides advance while the card is hovered. | true | true / false |
interval | Interval | 2.2 | 1 – 6 s |
| Motion | |||
response | SpeedTime a move takes to settle. | 0.46 | 0.18 – 1.2 s |
bounce | BounceOvershoot. | 0.2 | 0 – 0.6 |
stagger | Stagger | 70 | 0 – 200 ms |
Theming
theme="light" | "dark" | "auto". Override tokens on the element, e.g. e79-bookmark-card { --accent: #ff5a36; --bg: #0b0b0f; --e79-font: 'Inter' }. Methods: el.replay(), el.pin('state'). States: idle hover.