parallax3d.js
v1.0.0
Published
React 3D parallax components powered by Atropos.
Readme
parallax3d
A React component library of 3D parallax UI patterns built with atropos.
parallax3d wraps atropos/react into reusable React components for landing pages, product showcases, portfolio layouts, profile blocks, badges, and other layered motion interfaces.
Install
pnpm installAdd the package to your app:
pnpm add parallax3d atroposRequirements
react^19.2.0react-dom^19.2.0
Quick Start
Import the official Atropos stylesheet once in your app entry:
import 'atropos/css'Then use the exported components:
import 'atropos/css'
import {
ParallaxCard,
ParallaxHero,
ParallaxImage,
ParallaxProductCard,
} from 'parallax3d'
export function Example() {
return (
<>
<ParallaxHero
title="Tactile interfaces for modern launches."
description="Use layered motion for hero sections, product stories, and marketing showcases."
/>
<ParallaxImage src="/cover.jpg" alt="Campaign cover" caption="Editorial frame" />
<ParallaxCard
title="Neon Horizon"
description="A cinematic React card powered by Atropos."
imageUrl="/card.jpg"
tags={['React', 'Atropos', '3D']}
/>
<ParallaxProductCard
name="Orb Speaker"
price="$199"
imageUrl="/product.jpg"
/>
</>
)
}All components accept Atropos props such as rotateXMax, rotateYMax, shadow, highlight, and alwaysActive.
Components
ParallaxHeroHero section with layered heading, description, CTA buttons, and a supporting content panel.ParallaxImageStandalone image surface for editorial covers, avatars, product photos, or gallery entries.ParallaxGalleryItemPortfolio or gallery block with image, category label, and title.ParallaxCardGeneral-purpose content card with image, title, description, tags, and footer area.ParallaxProductCardCommerce-oriented card with product image, badge, price, and purchase CTA.ParallaxProfileCardProfile summary with avatar, role, and action buttons.ParallaxFeatureTileCompact feature block with index, icon, title, and description.ParallaxBadgeSmall metric or stat card for dashboards and marketing highlights.ParallaxDeviceMockupPhone-style mockup surface for SaaS or app previews.ParallaxPosterPoster/banner treatment for event, campaign, or launch visuals.ParallaxButtonHigh-emphasis CTA button with a 3D wrapper.
Development
Run the playground:
pnpm run playRun tests:
pnpm run testRun type checking:
pnpm run typecheckBuild the library:
pnpm run build