fix animation
This commit is contained in:
parent
50ebf541b4
commit
b8d12c9c21
1 changed files with 14 additions and 5 deletions
|
@ -50,16 +50,20 @@ def introFrames(args):
|
|||
)
|
||||
|
||||
frames = int(1.5*fps)
|
||||
for i in range(0, frames):
|
||||
yield tuple()
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('url', 'style', 'opacity', 0),
|
||||
('date', 'style', 'opacity', 1),
|
||||
('bar', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
||||
('title', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
|
||||
# frames = 1*fps
|
||||
# for i in range(0, frames):
|
||||
# yield (
|
||||
# )
|
||||
|
||||
frames = int(0.5*fps)+1
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
|
@ -109,17 +113,22 @@ def outroFrames(args):
|
|||
|
||||
frames = 2*fps
|
||||
for i in range(0, frames):
|
||||
yield tuple()
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 0),
|
||||
('license', 'style', 'opacity', 1),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 0),
|
||||
('license', 'style', 'opacity', easeLinear(i, 1, -1, frames)),
|
||||
)
|
||||
|
||||
frames = 1*fps
|
||||
for i in range(0, frames):
|
||||
yield (
|
||||
('logo', 'style', 'opacity', 0),
|
||||
('license', 'style', 'opacity', 0),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue