optimized code structure.

use "TweenLite" to make the effect smooth