I am using TailwindCSS v4 with Next.js v15.0.4.
In globals.css I have:
@theme {
--animate-float: float 4s inifinite
--animate-wiggle: wiggle 1s infinite
@keyFrames[ wiggle {
0% {
transform: rotate(-3deg);
}
100% {
transform: rotate(3deg);
}
},
@keyFrames float {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-10px);
}
}]
}
in ShoeDetail.tsx is have:
<Image className="animate-wiggle" src={nike1} width={600} height={500} alt="Picture of shoe"/>
There is only one animation shown in the available list, and the animation does not have any effect.
The built-in animate-pulse works fine.