Nine directions, one glance
The pointer's angle picks one of nine drawn head poses. A 70px dead zone and a little hysteresis let the head settle instead of flickering between poses.
Component 055Effects
A character for the top of your page that turns its head toward the reader's cursor and reacts when poked, with the fox drawn in six styles.
Quick start
Save page-mascot.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.
import { Mascot } from "@/components/ui/page-mascot";
export default function Page() {
return (
<Mascot
directions="/mascots/fox-directions.webp"
reactions="/mascots/fox-reactions.webp"
/>
);
}
// Put both sheets in public/mascots.
// The default export renders the full demo page.Behind the interaction
The pointer's angle picks one of nine drawn head poses. A 70px dead zone and a little hysteresis let the head settle instead of flickering between poses.
A poke blinks, then pays off with a heart, a sparkle, or a delighted face, with a squash-and-stretch bounce. Four quick pokes make it dizzy. Reduced motion skips the bounce.
Each character is a 3×3 directions sheet and a 3×3 reactions sheet, served from public/mascots. Original component and fox artwork by Kamran Ahmed under the MIT license.
Keep exploring
Ten glowing isometric city scenes drawn in SVG, from an office tower and a harbour crane to an airport, a power grid and a night diner. Every figure has its own controls, live status line, and six glow colours in dark or light.
A cinematic identity interface reveals the face beneath a masked portrait with a moving spotlight, glitch accents, and live mission panels.
Showing the colour fox at the top.
A small character for the top of your page. It turns its head to follow the reader's cursor and reacts when they poke it.
You can pick from one of the six styles. Or send a photo and get yourself turned into a character.
colour
the default
ink
black line
sketch
pencil
riso
two-tone print
paper
cut paper
pixel
32 across
mizanur
from a photo