Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP rough implementation of anchoring and inferred duration for parallel timelines #173

Closed
wants to merge 7 commits into from
15 changes: 13 additions & 2 deletions packages/boxel-motion-demo-app/app/controllers/interruption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ class InterruptionController extends Controller {
return {
timeline: {
type: 'parallel',
anchor: 'fill',
animations: [
{
sprites: keptSprites,
properties: {
border: {},
},
timing: {
behavior: new TweenBehavior(),
duration: 100,
},
},
{
sprites: keptSprites,
properties: {
Expand All @@ -32,12 +43,12 @@ class InterruptionController extends Controller {
{
sprites: keptSprites,
properties: {
border: {},
backgroundColor: {},
},
timing: {
behavior: new TweenBehavior(),
duration: 300,
duration: 1000,
anchor: 'center',
},
},
],
Expand Down
Loading