Components / Hero
Fluid Cursor
A real fluid follows the cursor and wipes a hidden photo into view.
Install
npm install @effect79/cardverseUsage
<script src="https://cdn.jsdelivr.net/npm/@effect79/cardverse@1/dist/cardverse.min.js"></script>
<e79-fluid-cursor theme="light">
<script type="application/json">
[
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
]
</script>
</e79-fluid-cursor>import { FluidCursor } from '@effect79/cardverse/react';
const items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
export default function Section() {
return <FluidCursor 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 { FluidCursor } from '@effect79/cardverse/react';
const items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
export default function Page() {
return <FluidCursor theme="light" items={items} />;
}<script setup>
import '@effect79/cardverse'; // registers <e79-fluid-cursor> (once, anywhere in your app)
const items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-fluid-cursor 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": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<template>
<e79-fluid-cursor theme="light" :items.prop="items" :config.prop="config" />
</template><script>
import '@effect79/cardverse'; // registers <e79-fluid-cursor>
const items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
const config = {}; // from the Studio
</script>
<e79-fluid-cursor theme="light" {items} {config}></e79-fluid-cursor>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@effect79/cardverse'; // registers <e79-fluid-cursor>
@Component({
selector: 'app-root',
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA], // lets Angular accept <e79-…> tags
template: `<e79-fluid-cursor theme="light" [items]="items" [config]="config"></e79-fluid-cursor>`,
})
export class AppComponent {
items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
config = {}; // from the Studio
}---
const items = [
{
"title": "Night Garden",
"desc": "Move the cursor across the dark",
"tag": "Reveal",
"media": "/img/img/hero.webp",
"link": "/your/page"
},
{
"title": "Aurora",
"tag": "Identity",
"media": "/img/img/g0.webp",
"link": "/your/page"
}
];
const config = {}; // from the Studio
---
<e79-fluid-cursor theme="light" config={JSON.stringify(config)}>
<script type="application/json" is:inline set:html={JSON.stringify(items)}></script>
</e79-fluid-cursor>
<script>
import '@effect79/cardverse'; // registers <e79-fluid-cursor> 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 Fluid Cursor 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 | The hidden photo (first row) / card images (Cards mode). Best: a landscape photo at least 2000 px wide; use Photo fit / Photo position for tall photos. |
title | no | Caption. |
desc | no | Small line under the caption. |
tag | no | Card label (Cards mode). |
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 | |||
look | ModeInk: a glowing trail. Reveal: uncovers a photo. Cards: a hover skin on cards. | "reveal" | ink reveal skin |
colors | Colours | "image" | image spectrum accent |
fit | Photo fitAuto fills the box unless that would crop much of the photo, then shows all of it. Fill always crops to the box. Whole photo always shows all of it. | "auto" | auto cover contain |
focusY | Photo positionWith Fill: which part of a tall photo stays in view (0 = top, 100 = bottom). | 50 | 0 – 100 % |
height | Height | 480 | 280 – 640 px |
radius | Corner radius | 24 | 0 – 40 px |
| Brush | |||
size | Size | 0.32 | 0.05 – 1.2 |
strength | StrengthHow hard the cursor pushes the fluid. | 1 | 0.2 – 2.5 |
follow | FollowLower = the brush trails behind the cursor. | 0.75 | 0.1 – 1 |
| Fluid | |||
fade | FadeHow fast the ink disappears. | 0.9 | 0 – 4 |
viscosity | ViscosityHow fast the motion calms down. | 0.35 | 0 – 4 |
curl | CurlSmall swirls in the flow. | 22 | 0 – 50 |
speed | Speed | 1 | 0.25 – 2 |
quality | Quality | "high" | low high |
| Finish | |||
glow | Glow | 0.45 | 0 – 1.5 |
blur | Blur | 0 | 0 – 24 px |
opacity | Opacity | 1 | 0.1 – 1 |
Theming
theme="light" | "dark" | "auto". Override tokens on the element, e.g. e79-fluid-cursor { --accent: #ff5a36; --bg: #0b0b0f; --e79-font: 'Inter' }. Methods: el.replay(), el.pin('state'). States: idle active.