reframe/ui
reframe/ui

Command Palette

Search for a command to run...

Text Clip Mask

This Demo Requires Full window for better accuracy and performance. Click the button below to open a Good Preview.

Installation

Install Dependencies

Copy and Paste the component

@/components/reframe-ui/text-clip-mask.tsx
PRO COMPONENT

Unlock with PRO

This component is exclusive to reframe/ui PRO.
Get instant access to all premium components and templates.

Usage

Props

NameTypeDefaultRequiredDescription
textstring-YesThe text to convert into an SVG mask.
fontUrlstring-NoThe font to use
fontSizenumber-NoThe size of the text
scrollContainerHTMLElement | null-NoThe scroll container to use for sticky section
stickyVhnumber300NoThe height of the sticky section
initialMaskScalenumber0.8NoThe initial scale of the mask
targetMaskScalenumber30NoThe target scale of the mask
easingnumber0.15NoThe easing factor for the smoothed progress
classNamestring-NoOptional: className for the root element
maskPositionstring50% 50%NoThe position of the mask
childrenReact.ReactNode-YesThe content to be masked
© Copyright 2025. All rights reserved.Built by @thommysart