0

I'm trying to get the figures in this jQuery code to change based on the screen size, in particular the amount I multiply the window by. Is this possible?

$(document).on('scroll', function() { //Slides Bio into view
  $('h2').css("left", Math.max(2000 - 1 * window.scrollY, 100) + "px");
})
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339

0 Answers0