Changed to use CSS classes instead of updating position.