`@keyframes` with elm-css

An issue was opened (and closed) here asking how to encode @keyframes using elm-css.

@rtfeldman indicated that this could be done using the Css.selector function.

After playing around with this a bit, it still isn’t clear how to create nested selectors that would be needed for the following:

  @keyframes sk-bouncedelay {
    0%, 80%, 100% { 
      transform: scale(0);
    } 40% { 
      transform: scale(1.0);
    }
  }

Does anyone know how (or if) this could be done?

Thanks,

Michael

2 Likes

I opened an issue to discuss a potential first-class keyframes API!

1 Like

Thanks for the reply Richard; I’ll follow the discussion from there.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.