madebysource / lesshat

Smart LESS CSS mixins library.
lesshat.com
MIT License
2.19k stars 258 forks source link

Keyframes - multiline #52

Open tenbits opened 10 years ago

tenbits commented 10 years ago

Hi LESSHat team,

as I have understood, multiline keyframe declaration is not possible, due to LESS parser? Or is there a workaround for this?

.keyframes(~'
    foo,
    from { opacity: 0 }
    to { opacity: 1 }
');

I also created a PR for less.js repo, so that also multiline strings are supported.

petrbrzek commented 10 years ago

Hey, as I know there is not workaround. Your suggested feature would be great!

steven-pribilinskiy commented 9 years ago

I have found a codepen that has a mixin which simply accepts a detached ruleset as an argument

Such mixin could be used for simple rules where vendor-prefixed properties animation, transform and filter aren't used