Scroll (CSS property)

From PowerUI
Jump to: navigation, search

PowerUI defines a scroll CSS property which makes animating scrolling straight forward (either via keyframes or element.animate):

scroll: <number> <number>
scroll-top: <number>
scroll-left: <number>
Inherited? Initial value
No 0 0
<div style='scroll-top:10px;'>
This will be scrolled by default.
</div>