Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/y2k-web/llms.txt
Use this file to discover all available pages before exploring further.
BlinkingText is a lightweight wrapper component that applies a CSS blink animation to any children passed into it, recreating the nostalgic effect of the legendary <blink> HTML tag. The <blink> element was introduced by Netscape Navigator in the mid-1990s and quickly became one of the most iconic — and divisive — features of the early web. Stripped from modern browsers for accessibility reasons, its distinctive on-off flicker lives on here through a Tailwind animate-blink utility class.
Props
Any content to animate — text, icons, badges, or other React elements. Rendered directly inside a
<span> with the blink class applied.Additional Tailwind or custom CSS classes applied to the wrapping
<span>. Use this to set colour, font, size, or spacing on the blinking element.Import
Usage
The animate-blink Keyframe
The animation is powered by a Tailwind custom keyframe registered in your tailwind.config.js. The keyframe steps the opacity between fully visible and fully invisible with a step-end timing function — matching the abrupt, non-interpolated flash of the original browser implementation:
step-end means the value snaps instantly at each keyframe rather than easing between them, reproducing the hard on/off character of the classic <blink> tag rather than a soft fade.