Frames are cells: a grid through the rows, and a playhead a frame wide
As in Flash, a hairline at every frame over the rows and through the cels, stronger at every second; too narrow to see, it steps by the fewest frames that divide a second, and goes when even that is too dense. The playhead is the frame it is on: a tinted cell with its line on the frame's left edge, where the ruler's number is, and a head carrying the frame number. Too narrow to tint, it is the line alone, as in Resolve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b45f7307a3
commit
e72d63214c
2 changed files with 69 additions and 17 deletions
|
|
@ -1066,12 +1066,21 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
min-width: max(340px, calc((100% - var(--label)) * var(--tl-zoom, 1)));
|
||||
position: relative;
|
||||
background: #fff;
|
||||
/* The major frame grid, using the same whole-second interval as the numbered
|
||||
ruler. It is a background rather than an element per mark; `--tick` is set
|
||||
by the component because only it knows the open symbol's length and FPS. */
|
||||
}
|
||||
|
||||
/* THE FRAME GRID, over the rows so it shows through the cels as Flash's does:
|
||||
a hairline at every frame (or every few, when a frame is too narrow to see —
|
||||
`--fine` is set by the component, which knows how wide a frame is drawn) and
|
||||
a stronger line at every whole second, the interval the ruler numbers. */
|
||||
.tl-grid {
|
||||
position: absolute; inset: 0; z-index: 1; pointer-events: none;
|
||||
background-image:
|
||||
repeating-linear-gradient(90deg,
|
||||
var(--grid-5) 0 1px, transparent 1px var(--tick, 10%));
|
||||
repeating-linear-gradient(90deg, var(--grid-5) 0 1px, transparent 1px var(--tick, 10%)),
|
||||
repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px var(--fine));
|
||||
}
|
||||
.tl-grid.coarse {
|
||||
background-image:
|
||||
repeating-linear-gradient(90deg, var(--grid-5) 0 1px, transparent 1px var(--tick, 10%));
|
||||
}
|
||||
|
||||
.tl-label,
|
||||
|
|
@ -1180,6 +1189,12 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
.tl-ruler {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
/* The fine grid's ticks along its foot, so the frames under the numbers can
|
||||
be counted too. */
|
||||
background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--fine));
|
||||
background-size: 100% 4px;
|
||||
background-position: bottom;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.tl-ruler .tick {
|
||||
|
|
@ -1315,27 +1330,39 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* THE PLAYHEAD IS THE FRAME, a cell wide: tinted over the tracks, with its line
|
||||
on the frame's left edge, where its time begins and where the ruler's number
|
||||
sits. A frame too narrow to tint is the line alone. */
|
||||
.tl-playhead {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
background: var(--playhead);
|
||||
min-width: 1px;
|
||||
box-sizing: border-box;
|
||||
border-left: 1px solid var(--playhead);
|
||||
background: color-mix(in srgb, var(--playhead) 13%, transparent);
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
}
|
||||
.tl-tracks.narrow .tl-playhead { background: none; }
|
||||
|
||||
/* The playhead's head, in the ruler rather than on the line, so it stays at the
|
||||
top with the ruler while the rows scroll. */
|
||||
/* Its head, on the same cell in the ruler and carrying the frame number, so
|
||||
where you are is read where you are looking. In the ruler rather than on the
|
||||
line, so it stays at the top while the rows scroll. */
|
||||
.tl-knob {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
z-index: 1;
|
||||
min-width: 16px;
|
||||
box-sizing: border-box;
|
||||
padding: 0 3px;
|
||||
pointer-events: none;
|
||||
margin-left: -4px;
|
||||
top: 1px;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: var(--playhead);
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
line-height: var(--ruler);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.tl-empty { padding: 9px; color: var(--dim); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue