Skip to content

Commit 73acd2c

Browse files
committed
✨ added ripple wave loader
1 parent 92c3f13 commit 73acd2c

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export const metadata = {
2+
title: 'Ripple Wave Loader',
3+
description: 'A Ripple Wave Loader animation that moves in a wave pattern.',
4+
}
5+
6+
<BackButton href="/components/loaders" />
7+
<ComponentPreview path="components/loaders/RippleWaveLoader" usingFramer />
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'use client'
2+
3+
import React from 'react'
4+
import { motion } from 'framer-motion'
5+
6+
const RippleWaveLoader = () => {
7+
return (
8+
<div className="flex items-center justify-center space-x-1">
9+
{[...Array(7)].map((_, index) => (
10+
<motion.div
11+
key={index}
12+
className="h-8 w-2 rounded-full bg-red-500"
13+
animate={{
14+
scaleY: [0.5, 1.5, 0.5],
15+
scaleX: [1, 0.8, 1],
16+
translateY: ['0%', '-15%', '0%'],
17+
}}
18+
transition={{
19+
duration: 1,
20+
repeat: Infinity,
21+
ease: 'easeInOut',
22+
delay: index * 0.1,
23+
}}
24+
/>
25+
))}
26+
</div>
27+
)
28+
}
29+
30+
export default RippleWaveLoader

src/showcase/ui-group/LoaderCards.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import PulsatingGradientLoader from '@/showcase/components/loaders/PulsatingGrad
1313
import Card from './Card'
1414
import WaveLoader from '../components/loaders/WaveLoader'
1515
import SpiralLoader from '../components/loaders/SpiralLoader'
16+
import RippleWaveLoader from '../components/loaders/RippleWaveLoader'
1617

1718
interface LoaderCardProps {
1819
title: string
@@ -84,6 +85,11 @@ const data: LoaderCardProps[] = [
8485
link: '/components/loaders/spiral',
8586
component: <SpiralLoader />,
8687
},
88+
{
89+
title: 'Ripple Wave',
90+
link: '/components/loaders/ripple-wave',
91+
component: <RippleWaveLoader />,
92+
},
8793
]
8894

8995
export default function LoaderCards() {

0 commit comments

Comments
 (0)