BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ui-beats/bounce

Bounce

ui-beats/bounce
FreeComponent

The Bounce component adds a playful, elastic animation to its children when they enter the viewport.

Install it

npx shadcn@latest add https://uibeats.com/r/bounce.json

Source

components/demo/animation/bounce.tsxuibeats.com/r/bounce.json
1"use client";
2import React from "react";
3import { motion, useInView, type Variants } from "motion/react";
4
5interface BounceProps {
6 children: React.ReactNode;
7 delay?: number;
8 duration?: number;
9 bounceHeight?: number;
10 className?: string;
11 once?: boolean;
12}
13
14const Bounce: React.FC<BounceProps> = ({
15 children,
16 delay = 0,
17 duration = 0.5,
18 bounceHeight = 20,
19 className = "",
20 once = true,
21}) => {
22 const ref = React.useRef<HTMLDivElement>(null);
23 const isInView = useInView(ref, { once, amount: 0.1 });
24
25 const variants: Variants = {
26 hidden: { opacity: 0, y: bounceHeight },
27 visible: {
28 opacity: 1,
29 y: 0,
30 transition: {
31 delay,
32 duration,
33 type: "spring",
34 stiffness: 200,
35 damping: 10,
36 },
37 },
38 };
39
40 return (
41 <motion.div
42 ref={ref}
43 initial="hidden"
44 animate={isInView ? "visible" : "hidden"}
45 variants={variants}
46 className={className}
47 >
48 {children}
49 </motion.div>
50 );
51};
52
53export default Bounce;

What it pulls in

npm packages

  • motion

Files it writes

  • components/ui/bounce.tsx

Facts

Registry
ui-beats
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-12
Last confirmed
today

Go to the source

uibeats.com Raw registry item This item as JSON

More from ui-beats

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Beamanimated-beamui-beatsComponentsFree1 dep
Dockdockui-beatsComponentsFree1 dep
Fade Infade-inui-beatsComponentsFree1 dep
Fade In Unblurfade-in-unblurui-beatsComponentsFree1 dep
Flip Cardflip-cardui-beatsComponentsFree2 deps
Glowing Cardglowing-cardui-beatsComponentsFree1 dep
Gradient Flowgradient-flowui-beatsComponentsFree1 dep
Gravity Text Swapgravity-text-swapui-beatsComponentsFree1 dep
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

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.

BlockDex