NotificationAnimator

Module: TSUI.Animation
Extends: None
Implements: IAnimator
Exported: Yes

Associated source files:

Description

Animator for a Notification.

Private Static Properties

AnimationEasing: string;
The jQuery animation easing to use
Default: linear
AnimationTime: number;
The length of time (milliseconds) to spend animating the notification.
Default: 1000ms


Public Methods

Hide(control: TSUI.UI.IControl, callback?: () => void): void
Slides the notification off to the right - does not set "top". Sets CSS 'visibility:hidden' and 'display:none'; Restores CSS 'right'.
  • control: TSUI.UI.IControl - The control to animate.
  • OPTIONAL callback: () => void - The callback to invoke after animation has completed.
  • Returns: void -
Show(control: TSUI.UI.IControl, callback?: () => void): void
Slides the notification in from the right - does not set "top". Clears CSS 'visibility' and 'display' values.
  • control: TSUI.UI.IControl - The control to animate.
  • OPTIONAL callback: () => void - The callback to invoke after animation has completed.
  • Returns: void -


Last edited Aug 24, 2013 at 6:12 PM by EdwardNutting, version 6

Comments

No comments yet.