added transition sample
bug fix when removing active pseudo style to an element