feat: Added SlideIn and SlideOut video transition effects and optimized front-end implementation

This commit is contained in:
yyhhyyyyyy
2025-01-09 19:46:57 +08:00
parent 7a5b037ad8
commit dd90cfecbb
10 changed files with 118 additions and 42 deletions

View File

@@ -9,3 +9,13 @@ def fadein_transition(clip: Clip, t: float) -> Clip:
# FadeOut
def fadeout_transition(clip: Clip, t: float) -> Clip:
return clip.with_effects([vfx.FadeOut(t)])
# SlideIn
def slidein_transition(clip: Clip, t: float, side: str) -> Clip:
return clip.with_effects([vfx.SlideIn(t, side)])
# SlideOut
def slideout_transition(clip: Clip, t: float, side: str) -> Clip:
return clip.with_effects([vfx.SlideOut(t, side)])