Squonk
elastic squircles illustration with fall and shrink movement.
Loading...
Installation
npx shadcn@latest add @scrollxui/squonk Usage
import { Squonk, SquonkContent } from '@/components/ui/squonk';<Squonk size={96} elasticity={1.2} cycleDuration={4000} easing="linear">
<SquonkContent index={0} className="bg-indigo-500">
<img
src="https://cdn.pixabay.com/photo/2023/02/07/10/50/ai-generated-7773822_1280.jpg"
alt=""
className="w-full h-full object-cover"
/>
</SquonkContent>
<SquonkContent index={1} className="bg-violet-400">
<img
src="https://cdn.pixabay.com/photo/2023/06/27/03/15/ai-generated-8091289_1280.jpg"
alt=""
className="w-full h-full object-cover"
/>
</SquonkContent>
</Squonk>API Reference
Squonk
elastic squircles illustration with fall and shrink movement.