Closed YDSS closed 10 years ago
You don't have a DOCTYPE, hence the browser is in quirks mode and does crazy stuff.
I add <!DOCTYPE html> to my code, it doesn't work either~~~It seems treat document as viewport.
Which browser? Please host your example somewhere. If I add DOCTYPE it works.
I'm sorry to reply so lately, it's working well now,thank you for this amazing project!!!
Hi, I'm so confused about viewport in relative mode. I know it's the visible area of browser, and relative mode like data-bottom-top can trigger animation relative to the viewport which is exactly what I need.I read the example http://prinzhorn.github.io/skrollr/examples/anchors.html and it works well, but in my simple demo,it not,I just want an element start rotate when it just pops from the bottom of viewport, and finish it at center of the viewport,so I use data-bottom-top="background-color:rgb(0,0,255);" as start and data-top-bottom="background-color:rgb(255,0,0);".But before I scroll, the class of element is skrollrable-between. Here is the code:
I'll be greatly appreciated!