Reputation: 139
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
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