Browse components
Oil Film
An oil-slick film of flowing interference colors that swirls around the cursor.
Oil Film
Installation
npx shadcn@latest add @glint-ui/oil-filmFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/oil-film.json
Usage
import { OilFilm } from "@/components/ui/oil-film";
<div className="relative h-96">
<OilFilm coverage={0.5} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tint | string | "#ffffff" | Multiplies the film colors. |
| speed | number | 1 | Flow speed. |
| scale | number | 1 | Pattern zoom. |
| coverage | number | 0.5 | Colored film vs. dark oil. |
| mouseStrength | number | 1 | Cursor swirl strength. |
| className | string | — | Extra classes for the root element. |