refactor code to attache type class only to browser-window
add fourth type of animation (bouncy)
tweak bouncing animation
finish fourth transition