BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ericts-ui/heartbeat-animation
This component no longer exists. It was in ericts-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-15 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Heartbeat Animation

ericts-ui/heartbeat-animation
RemovedComponent

A Motion-powered heartbeat primitive with a projected shadow layer and reduced-motion support.

Live preview

live · rendered by the registry
Rendered by ericts-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.ericts.com/r/heartbeat-animation.json

Source

registry/base/ui/heartbeat-animation.tsxui.ericts.com/r/heartbeat-animation.json
1"use client";
2
3import { motion, useReducedMotion, type HTMLMotionProps } from "motion/react";
4import * as React from "react";
5
6import { cn } from "@/lib/utils";
7
8const heartbeatScale = [1, 1.24, 0.93, 1.19, 0.96, 1, 1];
9const heartbeatLift = ["0%", "-4.2%", "1.1%", "-3.2%", "0.7%", "0%", "0%"];
10const heartbeatRotate = [0, -1.15, 0.62, -0.85, 0.34, 0, 0];
11const heartbeatTimes = [0, 0.055, 0.13, 0.23, 0.34, 0.5, 1];
12const maxHeartbeatLift = Math.max(...heartbeatScale) - 1;
13const heartbeatProjection = heartbeatScale.map((scale) =>
14 Math.max(scale - 1, 0) / maxHeartbeatLift,
15);
16const heartbeatShadowScale = heartbeatScale.map(
17 (scale, index) => scale + heartbeatProjection[index] * 0.055,
18);
19
20const heartbeatAnimation = {
21 rotate: heartbeatRotate,
22 scale: heartbeatScale,
23 y: heartbeatLift,
24};
25
26const heartbeatShadowAnimation = {
27 opacity: heartbeatProjection.map((distance) => 0.13 - distance * 0.04),
28 scale: heartbeatShadowScale,
29 x: heartbeatProjection.map((distance) => `${distance * -20}%`),
30 y: heartbeatProjection.map((distance) => `${distance * -5}%`),
31};
32
33const heartbeatTransition = {
34 duration: 1.18,
35 times: heartbeatTimes,
36 ease: "easeOut" as const,
37 repeat: Infinity,
38 repeatDelay: 0.9,
39};
40
41type HeartbeatTransition = NonNullable<HTMLMotionProps<"span">["transition"]>;
42
43export type HeartbeatProps = React.ComponentPropsWithoutRef<"span"> & {
44 /** Classes applied to the visible animated child wrapper. */
45 targetClassName?: string;
46 /** Classes applied to the projected shadow layer. */
47 shadowClassName?: string;
48 /** Hide the projected shadow layer. */
49 showShadow?: boolean;
50 /** Override the default double-thump transition. */
51 transition?: HeartbeatTransition;
52};
53
54export function Heartbeat({
55 className,
56 children,
57 shadowClassName,
58 showShadow = true,
59 targetClassName,
60 transition = heartbeatTransition,
61 ...props
62}: HeartbeatProps) {
63 const reduceMotion = useReducedMotion();
64 const resolvedTransition = reduceMotion ? { duration: 0 } : transition;
65
66 return (
67 <span
68 data-slot="heartbeat"
69 className={cn(
70 "relative inline-flex items-center justify-center",
71 className,
72 )}
73 {...props}
74 >
75 {showShadow ? (
76 <motion.span
77 aria-hidden="true"
78 data-slot="heartbeat-shadow"
79 className={cn(
80 "pointer-events-none absolute inset-0 z-0 text-current blur-[5px]",
81 shadowClassName,
82 )}
83// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/base/ui/heartbeat-animation.tsx

Facts

Registry
ericts-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-08
Last confirmed
yesterday

Go to the source

Docs on ericts-ui ui.ericts.com EricTsai83/ericts-ui on GitHub Raw registry item This item as JSON

More from ericts-ui

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Adaptive Draweradaptive-drawerericts-uiComponentsFree2 deps
Adaptive Switchadaptive-switchericts-uiComponentsFree2 deps
Check Markcheck-markericts-uiComponentsFreeno deps · 2 files
Context Cursorcontext-cursorericts-uiComponentsFree1 dep
Copy Buttoncopy-buttonericts-uiComponentsFree2 deps
Expandable Dialogexpandable-dialogericts-uiComponentsFree1 dep
Expandable Panelexpandable-panelericts-uiComponentsFree2 deps
Expandable Segmented Tabsexpandable-segmented-tabsericts-uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex