FIX: Do not add CSS transition effect to animated images (PR #12803)

Followup to c11d75da8783f3ded3338b13238646b49cfdcc64, the transition delays the pause/play action.

GitHub