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/interactive-hover-button

Interactive Hover Button

svelte-animations/interactive-hover-button
FreeBlock

A button with an interactive hover effect featuring an expanding dot and sliding text animation with an arrow.

Install it

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

Source

./src/lib/components/magic/interactive-hover-button/interactive-hover-button.sveltesv-animations.vercel.app/r/interactive-hover-button.json
1<script lang="ts">
2 import { ArrowRight } from "@lucide/svelte";
3 import { cn } from "$UTILS$";
4 import type { Snippet } from "svelte";
5 import type { HTMLButtonAttributes } from "svelte/elements";
6
7 interface InteractiveHoverButtonProps extends HTMLButtonAttributes {
8 children: Snippet;
9 class?: string;
10 }
11
12 let { children, class: className, ...props }: InteractiveHoverButtonProps = $props();
13</script>
14
15<button
16 class={cn(
17 "group bg-background relative w-auto cursor-pointer overflow-hidden rounded-full border p-2 px-6 text-center font-semibold",
18 className
19 )}
20 {...props}
21>
22 <div class="flex items-center gap-2">
23 <div
24 class="bg-primary h-2 w-2 rounded-full transition-all duration-300 group-hover:scale-[100.8]"
25 ></div>
26 <span
27 class="inline-block transition-all duration-300 group-hover:translate-x-12 group-hover:opacity-0"
28 >
29 {@render children()}
30 </span>
31 </div>
32 <div
33 class="text-primary-foreground absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 opacity-0 transition-all duration-300 group-hover:-translate-x-5 group-hover:opacity-100"
34 >
35 <span>{@render children()}</span>
36 <ArrowRight />
37 </div>
38</button>

What it pulls in

npm packages

  • @lucide/svelte

Files it writes

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

Facts

Registry
Svelte Animations
Type
registry:block
Access
Free
Files written
2
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