13
Crost
8y

just spent 2-3 hours trying to make a slideshow responsive for mobiles.

position().left returned an incorrect value breaking the whole thing. then jquery animations slowly produced a one pixel discrepancy when everything is animating based on the container width. breaking the whole thing.

Only solution has been to pretend all is fine.

things that make you want to smash something.

Comments
  • 0
    Or get away from jquery
  • 0
    and replace it with?
  • 1
    Not sure what your environment is, or your style, but since query selectors are a thing and ES6 is out I mostly keep it vanilla. If you gotta work with a lot of variables I recommend Ractive JS (ractivejs.org). That would be very useful for your slide show bits.
Add Comment