Aravinth
Aravinth

Reputation: 139

Object.style.filter="Flipv" its working fine in Internet explorer. How can i do in Firefox?

I want to convert the to flipVertical. I tried the object.style.filter="Flipv" its not working in firefox. Please make it.....

Upvotes: 0

Views: 481

Answers (2)

albanx
albanx

Reputation: 6335

you can use also CANVAS of firefox

Upvotes: 0

thirtydot
thirtydot

Reputation: 228182

Filters are implemented in only Internet Explorer.

Instead, you can use transform from CSS3: http://www.w3.org/TR/css3-2d-transforms/

In this case, you need transform: scaleY(-1).

A JavaScript example for Firefox:

document.getElementById('x').style.MozTransform = "scaleY(-1)";

CSS3 transforms are also supported in all modern browsers.

Upvotes: 4

Related Questions