Car Smoke Page Transition

A cinematic page transition where a speeding car crosses the screen, leaving a smoke trail before transitioning to the next page.

Click to trigger Ferrari drift & smoke transition
Smoke
Size

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/car-smoke-page-transition

API Reference

PropTypeDefaultDescription
direction'left-to-right' | 'right-to-left''left-to-right'Direction of car travel
carDurationnumber700Duration of car crossing animation in milliseconds
carDelaynumber0Delay before car starts moving in milliseconds
carSize'sm' | 'md' | 'lg''md'Size of the car (affects scale)
smokeDensity'off' | 'low' | 'medium' | 'high''medium'Density of smoke particles emitted
smokeLifetimenumber1200Lifetime of smoke particles in milliseconds
showSpeedLinesbooleantrueWhether to show speed lines effect behind the car
pageTransitionDelaynumber550Delay before page transition overlay starts in milliseconds
pageTransitionDurationnumber350Duration of page transition overlay fade in milliseconds
resetDelaynumber300Delay before resetting to idle after transition completes in milliseconds
onTransitionComplete() => voidundefinedCallback fired when transition completes (call navigate() here)
childrenReactNodeundefinedThe trigger element (typically a Button)
classNamestringundefinedAdditional Tailwind classes merged into the root