Prinzhorn/skrollr-stylesheets

Debugging

Opened this issue · 1 comments

Hello i modified something on my page that will skrollr stylesheets stop working. I have to debug it because i realized the problem weeks later.

  • I have no javascript errors
  • the skrollr files seems to be in the right place.(skrollr-stylesheets before skrollr itself near the page bottom, attribute data-skrollr-stylesheet is applied to my css file in head section
  • The "-skrollr-animation-name: ;" css part is also applied to the correct item.
  • skrollr.init(); is fired

The data attributes are not applied to the target element. Have you got an advice for me how this can be debugged best?

Have you got an advice for me how this can be debugged best?

Use Chrom(e|ium). Set breakpoints (e.g. here https://github.com/Prinzhorn/skrollr-stylesheets/blob/master/src/skrollr.stylesheets.js#L187). Find out stuff.