Garry's Mod Wiki

DHScrollBar:AnimateTo

  DHScrollBar:AnimateTo( number scroll, number length, number delay = 0, number ease = -1 )

Description

Smoothly scrolls to given level.

Arguments

1 number scroll
The scroll level to animate to. In pixels from the left ( from 0 )
2 number length
Length of the animation in seconds
3 number delay = 0
Delay of the animation in seconds
4 number ease = -1
See Panel:NewAnimation for explanation.