Equivalent of -webkit-transform in Mozilla Firefox
12,493
The "Mozilla" version is:
$("#logo").css("transform","translateY("+(s/3)+"px)");
with no prefix. This is, in fact, supported by current releases of all non-WebKit browsers.
Author by
Rickie
Hi all, I work as a web developer, Mumbai. Sometimes I get stuck in my project, and I think S.O. is the place where I get help from. Thank you S.O. M.U.C.H.
Updated on June 04, 2022Comments
-
Rickie about 2 years
I am able to move an image in Chrome, but not in Firefox. I have used the following code:
var s= $("#body").scrollTop(); $("#logo").css("-webkit-transform","translateY("+(s/3)+"px)");
For Firefox I have tried the following code:
$("#logo").css("-mozkit-transform","translateY("+(s/3)+"px)");
But it's not working.
What's its equivalent for Firefox?
-
sandeep over 11 yearsinstead of -mozkit write -moz
-
TylerH about 5 yearsPossible duplicate of webkit-transform alternative for Firefox
-
-
Peter Mortensen almost 3 yearsThe link is broken: "Page not found"