Low health

From verekia/r3f-gamedev · View interactive version

Low health is an AI agent skill from the GitHub repository verekia/r3f-gamedev. Display a pulsing red vignette overlay when the player's health is low.

How to use this skill

Skill file

Low Health

Display a pulsing red vignette overlay when the player's health is low.

Technique

Use a full-screen fixed div with box-shadow: inset to create a red vignette effect. Animate the opacity with CSS keyframes for a pulsing effect.

Key Concepts

Usage

<div
  className="pointer-events-none fixed inset-0 animate-[low-health-opacity_0.5s_ease-in-out_infinite_alternate]"
  style={{ boxShadow: 'inset 0 0 160px 40px red' }}
/>

This skill is part of verekia's **r3f-gamedev**.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.