fix speed bug when animation set as fade

say speed was set to 2000 and animation was set as fade, then we need (speed / 2) ms to fade in and the same time to fade out