Component packs › Tug › Hold Reveal

Hold Reveal

Hold and the blur clears in a circle from your finger while a linear ring counts the time.

Hold Reveal is a gesture from Tug, a component pack with 8 gestures: Eight pull gestures that follow your finger and let go like real material. Price: $2 for the whole pack.

Built with: linear hold ring, radial unblur, quick release.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Hold Reveal props

PropTypeDefaultDescription
darkboolean
widthnumber
holdnumber900Hold time in ms. Default 900.
autoplayboolean
onReveal() => void

Methods on the ref

Use it in React

import HoldReveal from './HoldReveal';

<HoldReveal />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Tug

Good for: Drag and pull gestures.