You didn't specify a unit for the value of the top
property of the first keyframe.
Yours: data-0="top:0;"
Correct: data-0="top:0px;"
When omitting the DOCTYPE
, the browser becomes less strict and assumes you mean pixels when you set top
to 100
or similar.
See also: https://github.com/Prinzhorn/skrollr#limitations
All numeric values have to have the same unit. It's not possible to animate from 0% to 100px. skrollr won't complain, but results are undefined.