Closed ben-rogerson closed 1 year ago
During testing I noticed that animate-bounce
wasn't bouncing but the other animate classes worked fine.
In dev tools, I saw that after stitches added the keyframe values to the <head>
it looks like this:
@keyframes bounce { 0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1) }}
@keyframes bounce { 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1) }}
when there should be a single @\keyframes container:
@keyframes bounce { 0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1) } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1) }}
@ajmnz Have you noticed similar? Seems to be an issue when the keyframes have multiple "steps"?
This option moves the
@keyframes
created fromanimate-x
classes to global styles. It was added to provide support for Stitches that doesn't support inline@keyframes
.Here's what global styles looks like with
{ moveKeyframesToGlobalStyles: true }
in your twin config:and on the
animate-x
classes:closes #753