ComponentsMotionMask RevealMask RevealUncovers an image or a card with a mask that slides across it.DependenciesmotionPreviewCodeOpen inPlate 01Uncovered, not faded.Installation#CLIManualpnpmnpmyarnbunpnpm dlx shadcn@latest add @balick/mask-revealOr pass the full URL: https://ui.balick.me/r/mask-reveal.jsonUsage#import { MaskReveal } from "@/components/ui/mask-reveal" export function Cover() { return ( <MaskReveal direction="left" zoom inView className="rounded-xl"> <img src="/cover.jpg" alt="" className="aspect-video w-full object-cover" /> </MaskReveal> ) }Props#PropTypeDefaultDescriptiondirectionSide the reveal starts from."left" | "right" | "up" | "down""left"Side the reveal starts from.durationDuration of the reveal, in seconds.number0.9Duration of the reveal, in seconds.delayDelay before the reveal, in seconds.number0Delay before the reveal, in seconds.zoomLet the content settle from a slight zoom while it is revealed.booleanfalseLet the content settle from a slight zoom while it is revealed.inViewWait until the element scrolls into view before revealing.booleanfalseWait until the element scrolls into view before revealing.inViewMarginMargin applied to the viewport when inView is set.string"-50px"Margin applied to the viewport when inView is set. PreviousMarqueeNext Orbit