BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/blaze-motion/sibling-dimming

Sibling Dimming

blaze-motion/sibling-dimming
FreeComponent

Sibling dimming — hovering one item dims every non-hovered sibling to 50%. Pure CSS.

Install it

npx shadcn@latest add https://motion.asmitsah.dev/r/sibling-dimming.json

Source

components/motion/sibling-dimming.tsxmotion.asmitsah.dev/r/sibling-dimming.json
1import type { ComponentPropsWithoutRef, CSSProperties } from "react";
2import { feel } from "@/lib/motion";
3import { cn } from "@/lib/utils";
4
5// Container: when it HAS a hovered item, every non-hovered item dims to 50%.
6// `:not(:hover)` keeps the hovered item untouched, so there's no self-hover
7// specificity race. Pair with SiblingDimmingItem (adds the `.dim-item` marker).
8export function SiblingDimming({ className, ...props }: ComponentPropsWithoutRef<"div">) {
9 return (
10 <div
11 className={cn("[&:has(.dim-item:hover)_.dim-item:not(:hover)]:opacity-50", className)}
12 {...props}
13 />
14 );
15}
16
17const dimTransition: CSSProperties = {
18 transitionDuration: `${feel.duration.fast}s`,
19 transitionTimingFunction: `cubic-bezier(${feel.ease.join(",")})`,
20};
21
22export function SiblingDimmingItem({
23 className,
24 style,
25 ...props
26}: ComponentPropsWithoutRef<"div">) {
27 return (
28 <div
29 className={cn("dim-item transition-opacity motion-reduce:transition-none", className)}
30 style={{ ...dimTransition, ...style }}
31 {...props}
32 />
33 );
34}

What it pulls in

npm packages

  • motion

Other registry items

  • https://motion.asmitsah.dev/r/provider.json

Files it writes

  • components/motion/sibling-dimming.tsx

Facts

Registry
blaze-motion
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

motion.asmitsah.dev blaze-000/blaze-motion on GitHub Raw registry item This item as JSON

More from blaze-motion

All 19 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Cinematic Imagecinematic-imageblaze-motionComponentsFree1 dep
Clip Revealclip-revealblaze-motionComponentsFree1 dep
Fadefadeblaze-motionComponentsFree1 dep
Grayscale Revealgrayscale-revealblaze-motionComponentsFree1 dep
Grow from Origingrow-from-originblaze-motionComponentsFree1 dep
Inset Frame Revealinset-frame-revealblaze-motionComponentsFree1 dep
Line Revealline-revealblaze-motionComponentsFree1 dep
Mask Text Revealmask-text-revealblaze-motionComponentsFree1 dep
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