Leah Posted March 12, 2014 Share Posted March 12, 2014 (edited) Hi folks, I've got the following code if (st > lastScrollTop){ $('div#search-apartments #content-inner #search-box').attr('style', '-webkit-transform:translate3d(0, '+movepx+'px, 0)'); } else { $('div#search-apartments #content-inner #search-box').attr('style', '-webkit-transform:translate3d(0, '+movepx+'px, 0)'); Here's the thing - I want to add '-moz-transform:translate3d(0, '+movepx+'px, 0)' so that the effect also works with firefox browsers. What should the code look like? Thank you:) Edited March 12, 2014 by Leah Quote Link to comment https://forums.phpfreaks.com/topic/286907-please-help-problem-with-attributes/ Share on other sites More sharing options...
ginerjm Posted March 12, 2014 Share Posted March 12, 2014 Looks like jquery to me. Try a different forum perhaps? Quote Link to comment https://forums.phpfreaks.com/topic/286907-please-help-problem-with-attributes/#findComment-1472360 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.