So I saw this question (Add argument into @keyframes property Less) however it doesn't completely solve my problem.
.progress-anim(@percentage: 0%) {
@-webkit-keyframes progress {
to { width: @percentage }
}
@-moz-keyframes progress {
to { width: @percentage }
}
@-ms-keyframes progress {
to { width: @percentage }
}
@keyframes progress {
to { width: @percentage }
}
}
Above is what I'm trying to do. This, I understand. What I don't understand, is how to run it from a animation
property.
.progress {
-webkit-animation: ? 2s 1 forwards;
-moz-animation: ? 2s 1 forwards;
-ms-animation: ? 2s 1 forwards;
animation: ? 2s 1 forwards;
}
What do I put in place for the ?
? I don't understand this.
Do I put the animation
calls within .progress-anim
?