Garry's Mod Wiki


void Panel:AlphaTo( number alpha, number duration, number delay = 0, function callback )


Uses animation to transition the current alpha value of a panel to a new alpha, over a set period of time and after a specified delay.


1 number alpha
The alpha value (0-255) to approach.
2 number duration
The time in seconds it should take to reach the alpha.
3 number delay = 0
The delay before the animation starts.
4 function callback
The function to be called once the animation finishes. Arguments are:

Page Links

Special Pages



Render Time: 25ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 12
Render Body 0
Render Sidebar 6