Skip to content

    Browse components

    Oil Film

    An oil-slick film of flowing interference colors that swirls around the cursor.

    Oil Film

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/oil-film

    First 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

    PropTypeDefaultDescription
    tintstring"#ffffff"Multiplies the film colors.
    speednumber1Flow speed.
    scalenumber1Pattern zoom.
    coveragenumber0.5Colored film vs. dark oil.
    mouseStrengthnumber1Cursor swirl strength.
    classNamestring—Extra classes for the root element.