Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyframes - multiline #52

Open
tenbits opened this issue Nov 8, 2013 · 2 comments
Open

Keyframes - multiline #52

tenbits opened this issue Nov 8, 2013 · 2 comments

Comments

@tenbits
Copy link

tenbits commented Nov 8, 2013

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
Copy link
Member

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

@steven-pribilinskiy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants