Skip to content

Animation keyframes mixin #144

@sergeylukin

Description

@sergeylukin

Following SCSS:

@mixin keyframes( $name )
{
    @-webkit-keyframes $name {
        @content;
    }
}

@include keyframes( change-color )
{
    0% { color: green; }
    100% { color: red; }
}

..compiles into:

@-webkit-keyframes $name {
  0% { color: green; }
  100% { color: red; }
}

...while it should be compiled into:

@-webkit-keyframes change-color {
  0% { color: green; }
  100% { color: red; }
}

If replacing @-webkit-keyframes $name with @-webkit-keyframes #{$name} it compiles correctly though.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions