Velocity Skew

Content that leans with the speed of the scroll, then settles back.

gsapMIT · free

Scroll the page quickly ↕

Installation

npx shadcn@latest add https://ombakui.com/r/velocity-skew.json

Usage

import { VelocitySkew } from "@/components/velocity-skew";

<VelocitySkew max={8}>
  <div className="grid grid-cols-3 gap-4">{images}</div>
</VelocitySkew>

Props

PropTypeDefaultDescription
children*ReactNode–
maxnumber8Maximum skew in degrees.
sensitivitynumber1How strongly scroll speed turns into skew.
classNamestring–