Created by: domq
Fixes #26451 (closed)
By applying the transition: CSS property only to classes that are active during sliding, we avoid an unnecessary, non-zero-time animation that although mostly invisible, does interfere with e.g. z-index based parallax carousels (see https://codepen.io/domq/pen/ZoJrQZ)