somewhat imitate old intro
This commit is contained in:
parent
1d391ed2db
commit
629bc5c543
2 changed files with 21 additions and 10 deletions
|
@ -9,7 +9,7 @@ scheduleUrl = "https://cfp.ctbk.de/fsck-2024/schedule/export/schedule.xml"
|
|||
|
||||
|
||||
def introFrames(args):
|
||||
frames = 2*fps
|
||||
frames = 1 * fps
|
||||
for _ in range(0, frames):
|
||||
yield (
|
||||
("title", "style", "opacity", 0),
|
||||
|
@ -21,9 +21,16 @@ def introFrames(args):
|
|||
frames = 1 * fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
("title", "style", "opacity", easeInQuad(i, 0, 1, frames)),
|
||||
("persons", "style", "opacity", easeInQuad(i, 0, 1, frames)),
|
||||
("glogo", "style", "opacity", 1),
|
||||
("title", "style", "opacity", easeOutSine(i, 0, 1, frames)),
|
||||
("persons", "style", "opacity", easeOutSine(i, 0, 1, frames)),
|
||||
(
|
||||
"glogo",
|
||||
"attr",
|
||||
"transform",
|
||||
# the easing function can’t handle easing from larger to smaller, so use this hacky workaround
|
||||
f"translate(0,{easeInQuad(frames-i, 0.0, 200.0, frames)})",
|
||||
),
|
||||
("glogo", "style", "opacity", easeOutSine(i, 0, 1, frames)),
|
||||
)
|
||||
|
||||
# show whole image for 5 seconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue