CSS transform animation doesn't work in Chrome
You missed the fact that transfrom:scale();
only takes simple integers (not measurements of any kind.). I don't know why Firefox CSS engine accepts that. But to make the code legal change the values.
@keyframes appear {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
The scaleX(1)
means the actual size of the div as specified by its code. Any other measure there means the relative scale (and not any absolute measure).
CSS animation transform: scale not working in Safari and possibly other browsers
Add the below code and try.
.animate-log-in {
-webkit-animation: scaleIn;
-webkit-animation-duration: 0.5s;
animation: scaleIn;
animation-duration: 0.5s;
}
@-webkit-keyframes scaleIn {
from {
-webkit-transform: scale(0);
}
to {
-webkit-transform: scale(1);
}
}
@keyframes scaleIn {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
CSS transition doesn't work properly in Chrome
You are almost there my dear friend. Checked this pen on my veriosn of Chrome, works like a charm.
However, I suggest you to deep dive into Vendor specific CSS properties when working on CSS Transitions and Transformations.
Here are some links which will definitely work for you:
Cross browser Transitions : https://css-tricks.com/almanac/properties/t/transition/
.example {
-webkit-transition: background-color 500ms ease-out 1s;
-moz-transition: background-color 500ms ease-out 1s;
-o-transition: background-color 500ms ease-out 1s;
transition: background-color 500ms ease-out 1s;
}
Cross browser Transformations: https://css-tricks.com/almanac/properties/t/transform/
.element {
-webkit-transform: value;
-moz-transform: value;
-ms-transform: value;
-o-transform: value;
transform: value;
}
Bug with transform: scale and overflow: hidden in Chrome
It's a known bug in Webkit-based browsers - see #62363. You can add a border:1px solid transparent;
to your .wrap
class to workaround the problem.
For the updated requirement, adding a transition to an element with a border-radius
, that's another known Chomre/Webkit bug #157218. Sorry but no known general workaround still, although one comment on that bug says that using the chrome://flags
and using the --ignore-gpu-blacklist
flag fixes it in Chrome 29 (which just hit the Chrome dev channel today).
Related Topics
Matrix 3D Transform for Obtaining Trapezoid
IE9 Not Applying Linked Style Sheets
How to Write A:Visited in Inline CSS
CSS - <Li> Items in Horizontal Menu Have a Gap Between Them
Br Clear="All" VS CSS Solution
Why Does This Div Shift Down When Content Is Added
How to Create a Div with a Diagonal (Or Angled) Top Line
How to Animate Infinite Marker Movement Down an Svg Path Without Very High CPU Usage
Attach Image to Actionlink in MVC 4
CSS Customization in a Bookdown Document
How to Set Height Property for Span
Style Lower and Upper Fill in HTML5 Range Input
Make Div Fill Remainder of Page Vertically
Horizontal Centering Text Over Image via CSS
CSS Display Property When a Float Is Applied
Chrome Cut Off Oswald-Light Font
Css: Fit Relative Positioned Parent to Height of Absolute Positioned Child