Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LESSCSS and @keyframes

Has anyone had issues with LESSCSS and @keyframes or @-ms-keyframes? It compiles the CSS fine for @-webkit-keyframes, @-moz-keyframes and @-o-keyframes.

like image 200
Ahmed Nuaman Avatar asked Mar 02 '26 18:03

Ahmed Nuaman


1 Answers

These are whitelisted, -ms is missing. keyframes should work: https://github.com/cloudhead/less.js/blob/master/lib/less/parser.js#L988

There is an open request for a fix: https://github.com/cloudhead/less.js/pull/498

The common workaround is to put keyframes in a separate .css file that you import - files with a .css extension are not parsed by LESS.

like image 124
Ricardo Tomasi Avatar answered Mar 06 '26 02:03

Ricardo Tomasi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!