Leah Posted March 12, 2014 Share Posted March 12, 2014 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:) 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? 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
Archived
This topic is now archived and is closed to further replies.