/* Timeline */ canvas { display: block; } .timeline { display: flex; flex-direction: row; position: relative; width: 300px; cursor: crosshair; } .timelineColumn { position: relative; } .ticks .tick { position: absolute; right: 0; width: 4px; height: 1px; background: #ddd; pointer-events: none; } .ticks .tickLabel { pointer-events: none; position: absolute; right: 6px; font-size: 12px; width: 40px; margin-top: -7px; text-align: right; text-shadow: 0 0 2px #00f; } .timeline .cursor { width: 100%; position: absolute; left: 0; pointer-events: none; } .timeline .cursor .line { width: 100%; height: 1px; background: #00f; } .timeline .cursor.playCursor .line { background: #ddd; } .timeline .cursor .tickLabel { position: absolute; pointer-events: none; right: 6px; font-size: 12px; width: 40px; margin-top: -7px; text-align: right; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 2px #000; user-select: none; } .timeline .cursor_region { position: absolute; left: 0; width: 100%; border-top: 1px solid #33f; border-bottom: 1px solid #33f; background: rgba(32,64,255,0.2); } .timeline .cursor_region .tickLabel { position: absolute; top: 2px; left: 6px; user-select: none; }