Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,22 @@ li:last-child > .role-seg {
scale: 1 0;
}

/* The timeline lives in its own rule. The CSS minifier folds animation-timeline into the animation shorthand when they share a rule, and browsers drop that declaration */
@supports (animation-timeline: view()) {
.role-seg-fill {
animation: rail-fill linear both;
animation-timeline: --seg;
animation-range: cover 50vh cover calc(100% - 50vh);
}

.role-seg > .role-seg-fill {
animation-timeline: --seg;
}

.role-dot {
animation: role-dot linear both;
}

li > .role-dot {
animation-timeline: view();
}
}
Expand Down
Loading