Difference between revisions of "Scroll (CSS property)"

From PowerUI
Jump to: navigation, search
(Created page with "PowerUI defines a scroll CSS property which makes animating scrolling straight forward (either via keyframes or element.animate): <syntaxhighlight lang="css"> scroll: <numbe...")
 
 
Line 17: Line 17:
 
| 0 0
 
| 0 0
 
|}
 
|}
 +
 +
<syntaxhighlight lang="html">
 +
<div style='scroll-top:10px;'>
 +
This will be scrolled by default.
 +
</div>
 +
</syntaxhighlight>

Latest revision as of 19:04, 13 January 2017

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>