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

[F3] Can't set backgroundColor in states #62

Closed
awt2542 opened this issue May 11, 2014 · 3 comments
Closed

[F3] Can't set backgroundColor in states #62

awt2542 opened this issue May 11, 2014 · 3 comments

Comments

@awt2542
Copy link
Contributor

awt2542 commented May 11, 2014

Doesn't seem like backgroundColor changes when set in states. Maybe this is expected behavior?

box = new Layer({backgroundColor: "blue"})
box.states.add({
    second: {backgroundColor: "red", y: 20}
})
box.on(Events.Click, function() {
    box.states.next()
})
@koenbok
Copy link
Owner

koenbok commented May 11, 2014

Yes. We can't animate colors (or any other non numeric property) yet. But with the new animation backend we can easily add that. It's just work, so it will come in time :-)

@awt2542
Copy link
Contributor Author

awt2542 commented May 11, 2014

Right, of course. Thanks and keep up the good work! :-)

@koenbok
Copy link
Owner

koenbok commented May 11, 2014

Thanks!

@koenbok koenbok closed this as completed May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants