Cycle Browser in Debugger (#3082)

This commit is contained in:
Jonathan Dobson
2025-08-01 09:16:54 -04:00
committed by GitHub
parent 67717aa987
commit e0e3fd1622
4 changed files with 239 additions and 10 deletions

View File

@@ -0,0 +1,42 @@
interface AnimatedWaveProps {
text: string;
className?: string;
}
export function AnimatedWave({ text, className = "" }: AnimatedWaveProps) {
const characters = text.split("");
return (
<>
<style>{`
@keyframes wave {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-4px);
}
}
.animate-wave {
animation-name: wave;
}
`}</style>
<span className={`inline-flex ${className}`}>
{characters.map((char, index) => (
<span
key={index}
className="animate-wave inline-block"
style={{
animationDelay: `${index * 0.1}s`,
animationDuration: "1.3s",
animationIterationCount: "infinite",
animationTimingFunction: "ease-in-out",
}}
>
{char === " " ? "\u00A0" : char}
</span>
))}
</span>
</>
);
}