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

Class cannot be used with CSS transitions #15

Open
Glutnix opened this issue Oct 29, 2013 · 2 comments
Open

Class cannot be used with CSS transitions #15

Glutnix opened this issue Oct 29, 2013 · 2 comments

Comments

@Glutnix
Copy link

Glutnix commented Oct 29, 2013

I tried adding a background-color CSS Transition with no success - I believe this is because the class is being appended to the node, which is then being removed and appended into a fresh div, thus losing its transition state.

@leafo
Copy link
Owner

leafo commented Nov 16, 2013

The element is the same but it's moved in the dom when sticking a float element. I think the move causes the transition to break. Not sure what the best solution is because moving the element makes the spacer implementation a lot simpler.

@Glutnix
Copy link
Author

Glutnix commented Nov 16, 2013

I haven't tried it but I assume you could delay changing the class on the element until it had been reattached to the document, thus give CSS transitions a before and after state to draw upon.

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