I'm currently trying to find a way to generate prefixed keyframes with Less.
This is the loop that generates the prefixed versions, and it works. The only problem is when I add a from{} to{}
declaration inside the dostuff
animation it breaks it and causes Less to treat them like a mixin.
Is there any way to get this to work?
@key-prefix: ~"@-webkit-",~"@-o-",~"@-moz-",~"@";
.generate-keyframes(@i) when (@i > 0) {
.load1-keyframes((@i - 1));
@prefix: extract(@key-prefix,@i);
@{prefix}keyframes dostuff {
}
}
.generate-keyframes(4);