Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

178
Vistas
With styled-components, how to use the longform css animation syntax to have multiple keyframed animations?

So when an animation is created via the longform declaration and it has multiple specified names:

const animationNameCss = css`
    //insert keyframes here
`

let animatedImg = styled.img`
        animation-name: ${animationNameCss}, ${animationNameCss};
        animation-delay: 0, 200ms;
        animation-duration: 200ms;
        animation-timing-function: linear;
        animation-iteration-count: 1;
      `;

Only the first animation is performed. Is this related to concatenating tagged templates or simply not supported in styled-components? The intent is to create multiple animations that play back to back of 200ms each by concatenating animation-name and animation-delay.

AnimationNameCss is dynamically set to one of 8 different keyframe sets in the real code.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I'm actually wrong, it does work like this. The issue was actually in animation-delay: 0, 200ms;

That should be 0ms, 200ms and the animation performs as expected.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda