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.
| Value | Entrance | Mirrored exit |
|---|---|---|
fade | Fades in from transparent | Fades out |
slideup | Slides in from below | Slides out downward |
slidedown | Slides in from above | Slides out upward |
slideleft | Slides in from the right | Slides out to the right |
slideright | Slides in from the left | Slides out to the left |