I have a div that I'm animating and I'm using the good old translateZ hack to force hardware acceleration:
#random{
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
Everything works fine in all browsers, except in safari 5.1. In safari the whole div just does not render, you can mark the text etc, but it's transparent.
Removing the transform solves the problem but is there any other solution?
It should work :
http://caniuse.com/transforms3d
If not maybe try sandpaper plugin:
SANDPAPER
https://github.com/pbakaus/transformie
Related
I found a strange problem. During animation, dark colors are flickering.
codepen
Partially -webkit-backface-visibility: hidden fixes the problem, but it makes font tighter and brighter.
Problem occurs on chrome and edge. Firefox works fine.
Try adding the following code to your span elements.
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
This should cover all browsers as far as I've tested.
Couple months ago I write a pen like bokeh bubbles that create perspective tunnel.
It runs fast in actual Crome and Opera.
here is pen on codepen:
http://codepen.io/anon/pen/wGrbPJ
And seems like the animation jitters too much in IE11 and FireFox 46.
I thought that there should be some workaround to increase draw speed like:
backface-visibility: hidden;
Or applying 3d hardware acceleration, like add:
* {
-webkit-font-smoothing: antialiased;
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
But this doesn't give much boost.
Maybe someone is expert in 3d transitions in css who know what causing such jittering in IE and FF, and can point me to where to look at?
Sincerely!
Vitaly.
I am trying to move a search box widget on a WordPress page by using translate (since it be put there by default). The code below works on all of the major browsers except Safari both the desktop and mobile versions. The code is below:
input#s {
-ms-transform: translateY (85px);
-webkit-transform: translateY (85px);
-moz-transform: translateY (85px);
-o-transform: translateY (85px);
transform: translateY(85px);
z-index: 1000;
position: relative;
display: inline-block;
}
Thanks for any help.
Is there a reason you have spaces after translateY on all of them but the non-prefixed? That's what I'd venture the issue is.
It's reading the translateY but you have "no value" attached to it due to the spaces.
I am attempting to rotate or transform a div using the CSS Transform property. Here is my transform CSS Code:
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-o-transform: rotate(270deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0);
transform: rotate(270deg);
The above code works great in all but IE 8. I need to find a way to support IE 8.
How can I create a fallback for IE8?
Note: I am using jQuery (1.8.2), HTML 5 Doctype and modernizr if that makes a difference in the answer you provide. I prefer a CSS only solution but willing to use a javascript/jQuery solution.
Here is a fiddle with the HTML and CSS.
If you see your "filter:" rotation to 3, it will give a 270 degree rotation in IE 8 (and downward to v5.5, IIRC).
http://msdn.microsoft.com/en-us/library/ms532918(v=vs.85).aspx
I want to rotate an image when i hover on it.I use the follwing code to rotate.Bui it doesn't works....
#header #scn:hover{transform:rotate(45deg)};
It doesn't works for me.I am using Firefox 4.
Is there any way to perform transform and shadow effects in IE8.
You need to add a prefix for every rendering engine. For Firefox the prefix is -moz-.
To rotate an image in all supported browsers use:
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
For text shadows in IE8 you can use Shadow Filter (MSDN).
Plus there is CSS transforms workaround for Internet Explorer:
cssSandpaper.