AnimationsProNew

Parallax Floating

Images scattered across the screen shift with the cursor at different depths, as if hanging in space. A striking hero for portfolios.

Customize

color
accentColor
highlightColor

Based on Parallax Floating (MIT license) ยท Terms of use

Props

8 properties
PropertyTypeDefaultDescription
childrenReactNodeโ€”FloatingElement items with images or blocks.
sensitivitynumber1Shift strength. A negative value moves items against the cursor.
easingFactornumber0.05Catch-up smoothness: lower is softer.
FloatingElement.depthnumber1Depth of one item: the higher, the more it moves.
colorstring"#ffffff"Main colour. Children read it as var(--parallax-c1).
accentColorstring"#737373"Second colour. Children read it as var(--parallax-c2).
highlightColorstring"#e5e5e5"Light highlight colour. Children read it as var(--parallax-c3).
classNamestringโ€”Extra classes.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all