HTML:
<div id="myDiv">
//Some content
</div>
I want to set the below css to the div using jQuery:
Transform: matrix(1, 0, 0, 1, 461, 300)
But that div has already inline style
Transform: translate3d(0px, 0px, 0px)
When I am assigning the css through jQuery, it is not accepting.
$(“#myDiv”).css("transform", "matrix(1, 0, 0, 1, 461, 300)");
How to resolve the issue?
Update:
I'm also using the JS file at the bottom of the page(i.e below </body> tag). I have written the code in $(window).load(function(){}) event and it is applying.
But I'm having flickering effect due to position interchanging.
.addClass()?(“#myDiv”).attr("style", "transform:matrix(1, 0, 0, 1, 461, 300)");