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

Transition on Transform not working correctly #68

Closed
nothrem opened this issue Jan 12, 2015 · 1 comment
Closed

Transition on Transform not working correctly #68

nothrem opened this issue Jan 12, 2015 · 1 comment

Comments

@nothrem
Copy link

nothrem commented Jan 12, 2015

When I want to animate element scaling, I need to use this style:

.animateZoom{
transform: scale(1);
transition: transform 0.5s ease 0.5s;
}

In this definition both transform and transition keywords must be prefixed in both definitions and values:
.animateZoom{
-webkit-transform: scale(0.1);
-moz-transform: scale(0.1);
transform: scale(0.1);
-webkit-transition: -webkit-transform 0.5s ease 0.5s;
-moz-transition: -moz-transform 0.5s ease 0.5s;
transition: transform 0.5s ease 0.5s;
}

But CssCrush translates only the definitions, not the values:
.animateZoom{
-webkit-transform: scale(0.1);
-moz-transform: scale(0.1);
transform: scale(0.1);
-webkit-transition: transform 0.5s ease 0.5s; //<<missing -webkit-transform
-moz-transition: transform 0.5s ease 0.5s; //<<missing -moz-transform
transition: transform 0.5s ease 0.5s;
}

See http://stackoverflow.com/questions/13782277/css3-transforms-and-transitions-webkit

@peteboere
Copy link
Owner

Dupe of #25

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