use getComputedStyle instead of transitionend