PiP Transition

video-mark-transition

Sets the animation for the picture-in-picture overlay when it enters and exits. By default, the exit mirrors the entrance — a slideup slides the overlay in from below and slides it back out to the bottom when it leaves.

video-mark-transition accepts one or more animation types. Combine a slide with fade (e.g. slideup,fade) to add an opacity ramp on top of the movement. The transition duration is controlled by video-mark-transition-dur. To override entrance and exit independently, use video-mark-transition-in and video-mark-transition-out. Use video-mark-transition[N] for a specific overlay layer.

An exit transition requires video-mark-end to be set — the overlay needs to know when to leave.

The mirrored exit reverses the direction of travel — the overlay exits back the way it entered. This differs from setting video-mark-transition-out explicitly, where slideup exits toward the top of the frame.

ValueEntranceMirrored exit
fadeFades in from transparentFades out
slideupSlides in from belowSlides out downward
slidedownSlides in from aboveSlides out upward
slideleftSlides in from the rightSlides out to the right
sliderightSlides in from the leftSlides out to the left