BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Svelte Animations/pulsating-button

Pulsating Button

svelte-animations/pulsating-button
FreeBlock

A button component with a pulsating ring effect that expands and fades around the button.

Install it

npx shadcn@latest add https://sv-animations.vercel.app/r/pulsating-button.json

Source

./src/lib/components/magic/pulsating-button/pulsating-button.sveltesv-animations.vercel.app/r/pulsating-button.json
1<script lang="ts">
2 import { cn } from "$UTILS$";
3 import type { Snippet } from "svelte";
4
5 interface PulsatingButtonProps {
6 children: Snippet;
7 class?: string;
8 pulseColor?: string;
9 duration?: string;
10 distance?: string;
11 variant?: "slow" | "ring" | "ripple";
12 }
13
14 let {
15 class: className,
16 children,
17 pulseColor = "#808080",
18 duration = "1.5s",
19 distance = "8px",
20 variant = "slow",
21 ...props
22 }: PulsatingButtonProps = $props();
23</script>
24
25<button
26 class={cn(
27 "bg-primary text-primary-foreground relative flex cursor-pointer items-center justify-center rounded-lg px-4 py-2 text-center",
28 className
29 )}
30 style="--pulse-color: {pulseColor}; --duration: {duration}; --distance: {distance};"
31 {...props}
32>
33 <div class="relative z-10">
34 {@render children()}
35 </div>
36 <span
37 aria-hidden="true"
38 class={cn(
39 "pointer-events-none absolute inset-0 rounded-[inherit] bg-inherit",
40 variant === "ripple" && "animate-pulse-ripple",
41 variant === "ring" && "animate-pulse-ring",
42 variant === "slow" && "animate-pulse-slow"
43 )}
44 ></span>
45</button>

Files it writes

  • ./src/lib/components/magic/pulsating-button/pulsating-button.svelte
  • ./src/lib/components/magic/pulsating-button/index.ts

Facts

Registry
Svelte Animations
Type
registry:block
Access
Free
Files written
2
Theme wiring
ships cssVars
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

sv-animations.vercel.app SikandarJODD/animations on GitHub Raw registry item This item as JSON

More from Svelte Animations

All 66 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Beamanimated-beamSvelte AnimationsBlocksFree1 dep · 6 files
Animated Circular Progress Baranimated-circular-progress-barSvelte AnimationsBlocksFreeno deps · 2 files
Animated Gradient Textanimated-gradient-textSvelte AnimationsBlocksFreeno deps · 2 files
Animated Grid Patternanimated-grid-patternSvelte AnimationsBlocksFree1 dep · 2 files
Animated Listanimated-listSvelte AnimationsBlocksFree1 dep · 2 files
Animated Shiny Textanimated-shiny-textSvelte AnimationsBlocksFreeno deps
Animated Theme Toggleranimated-theme-togglerSvelte AnimationsBlocksFreeno deps · 2 files
Arc Timelinearc-timelineSvelte AnimationsBlocksFreeno deps · 3 files
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex