Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Set css animation name with Sass variable? (mixin)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #38336
    elneco
    Participant

    yo yo,

    im trying this:


    =hello($thename, $c_1)
    @-webkit-keyframes $thename
    0%
    color: #fff
    left: -200%
    100%
    color: $c_1
    left: auto

    +hello(one, $c_1)

    and im getting this:


    @-webkit-keyframes $thename {
    0% { color: white; left: -200%; }
    100% { color: #0080ff; left: auto; } }

    is it not possible to assign an animation name with a variable in a mixin?

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.