ScrollService CDK

Examples API Setup

Method scroll$: Observable<[number, number]> (emits a tuple tuple [scrollTop, scrollLeft] )

Name and descriptionType
element
Element to be scrolled
Element
scrollTop
Target position from top
number
scrollLeft
Optional . Target position from left
number
duration
Optional . Duration time in ms (0 for an instant scroll).
number