Scroll (CSS property)

From PowerUI
Revision as of 19:04, 13 January 2017 by 151.229.186.156 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>