Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there polyfill for css transform property in IE8

I have the following mixin for cross-browser transform:

.transform (...) {
    -webkit-transform: @arguments; /* Chrome, Opera 15+, Safari 3.1+ */
       -moz-transform: @arguments; /* Firefox 3.5+ */
        -ms-transform: @arguments; /* IE 9 */
         -o-transform: @arguments; /* Opera 10.5+ */
            transform: @arguments; /* Firefox 16+, IE 10+, Opera */
}

.translate(@x:0, @y:0) {
    .transform(translate(@x, @y));
}

And apply it something like the following:

#main {
   .translate(280px, 0);
}

But it's not wotk in IE8 and Opera mini. Is there some fallback, polyfill or any for supporting it in therese browsers?

like image 582
Erik Avatar asked Mar 02 '15 08:03

Erik


1 Answers

There are a few you can use, the ones suggested from modenizer are:

css sandpaper and transformie.

I'd argue though, that adding pollyfills to older browser like ie8 damages the performance of an already past it browser and lowers the user experience. Also, if you are adding pollyfills to mobile browsers you are adding to the loading times which in a 3g connection might put users off.

like image 81
atmd Avatar answered Sep 27 '22 23:09

atmd