How to dynamically generate CSS3 keyframe steps using SASS?
问题 Let's say I have a key frame animation that has 100 steps that increases top by 1 px in each step. It would be logical to use a program to generate such a css. @keyframes animation { 0% {top:0px;} 1% {top:1px;} 2% {top:2px;} ... 99% {top:99px;} 100% {top:100px;} } While this can be done easily in JS, I want to know if there is a way to do it in SASS. The main problem I'm having right now is I could not find a way to dynamically generate the steps selectors ( 1%, 2%, 3% etc) . I have tried #