Rotate js using CSS transition