The forums ran from 2008-2020 and are now closed and viewable here as an archive.
any idea on how to make a div fixed only by the scroll x not y ?
The example from your previous topic seems to work fine…
Edit – I overlooked the issue with IE when I posted this. And no more IE11 support for JSFiddle or Codepen apparently…
You could try if this is any smoother (doesn’t require repaints):
transform: 'translateX(' + $(this).scrollLeft() + 'px)'
Doesn’t look too smooth on Firefox. Here’s another approach (logic is likely up for some revision as is usually the case with these things):
Seems to work well, can’t imagine IE giving any issues.