Hi, Sass newbie here. Playing with mixins:
$> sass -v
Sass 3.4.23 (Selective Steve)
$> cat myscss.scss
// Keyframe animations
@mixin keyframes($animation-name) {
@-webkit-keyframes $animation-name {
@content;
}
}
@include keyframes(move-up) {
0% {
top: 25px;
opacity: 1;
}
100% {
top: -50px;
opacity: 0;
}
}
$> sass myscss.scss
@-webkit-keyframes move-up {
0% {
top: 25px;
opacity: 1; }
100% {
top: -50px;
opacity: 0; } }
And this is the problem. I was expecting:
@-webkit-keyframes $animation-name {
0% {
top: 25px;
opacity: 1; }
100% {
top: -50px;
opacity: 0; } }
What am I missing?
thanks