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.

Share:
12,493
Rickie
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, 2022

Comments

  • Rickie
    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?

  • Peter Mortensen
    Peter Mortensen almost 3 years
    The link is broken: "Page not found"