āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/ibelick/motion-primitives/progressive-blur/page ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
export const metadata = { title: 'Progressive blur - Motion-Primitives', description: 'A Progressive Blur component creates a layered blur effect using motion and gradient masks. It progressively blurs layers based on direction and intensity, adding visual depth. Built for React, Next.js, and Tailwind CSS.', };
import { ProgressiveBlurBasic } from './progressive-blur-basic'; import { ProgressiveBlurHover } from './progressive-blur-hover'; import { ProgressiveBlurSlider } from './progressive-blur-slider'; import ComponentCodePreview from '@/components/website/component-code-preview';
A Progressive Blur component creates a layered blur effect using motion and gradient masks. It progressively blurs layers based on direction and intensity, adding visual depth.
<ComponentCodePreview component={<ProgressiveBlurBasic />} filePath='app/docs/progressive-blur/progressive-blur-basic.tsx' />
<ComponentCodePreview component={<ProgressiveBlurHover />} filePath='app/docs/progressive-blur/progressive-blur-hover.tsx' />
You can change the direction of the blur effect with the direction prop.
<ComponentCodePreview component={<ProgressiveBlurSlider />} filePath='app/docs/progressive-blur/progressive-blur-slider.tsx' />
<Step>Copy and paste the following code into your project.</Step>
<CodeBlock filePath='components/core/progressive-blur.tsx' /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>| Prop | Type | Default | Description | | :------------ | :------------------------------------- | :------ | :---------------------------------------- | | direction | 'top' | 'right' | 'bottom' | 'left' | 'top' | The direction of the blur effect. | | blurLayers | number | 8 | The number of blur layers. | | className | string | '' | The class name to apply to the component. | | blurIntensity | number | 0.25 | The intensity of the blur effect. |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā