Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA full screen lock screen with a huge live clock that sits behind the mountains of a real photo: the component samples the photo on a canvas, finds the skyline column by column and masks a second copy of the image in front of the digits, or uses your own mask image, falling back to a soft gradient occlusion. Below the clock sits a row of frosted glass widgets with edge refraction, round flashlight and camera buttons and a shimmering swipe hint. Drag the whole screen up with rubber band resistance and velocity release to unlock and reveal your home content behind it, with gentle pointer parallax between photo and clock, keyboard unlock, a controlled locked prop and reduced motion support.
Included in UltimateCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { LockScreenClock } from "@/components/hyperblur-pro/lock-screen-clock"
<LockScreenClock hour12 onUnlock={() => console.log("unlocked")}>
<YourHomeScreen />
</LockScreenClock>| Prop | Type | Default | Description |
|---|---|---|---|
| photo | string | "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=2000&q=80" | Wallpaper photo. Must allow CORS for automatic depth. |
| maskSrc | string | undefined | Optional mask image (opaque where the subject is) placed in front of the clock instead of the automatic one. |
| autoDepth | boolean | true | Detect the skyline in the photo to put the clock behind the subject. |
| hour12 | boolean | false | Show a 12 hour clock. |
| widgets | boolean | true | Show the glass widgets row. |
| tint | string | "rgba(255,255,255,.94)" | Clock digit color. |
| locked | boolean | undefined | Controlled locked state. Leave undefined for uncontrolled. |
| onUnlock | () => void | undefined | Called when the user unlocks. |
| onLock | () => void | undefined | Called when the default home content locks again. |
| children | React.ReactNode | app grid with a Lock button | Home content revealed after unlocking. |
Source code is included in Ultimate