Jump to content

Please help - Problem with attributes


Leah

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.