reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Progress bar gradients are hard to create

Open Saucistophe opened this issue 5 months ago • 0 comments

The progress bar is animated using a transform: scaleX property. This means that any styling that takes width into account is garbled. Let's say I wanted to create a rainbow, its gradient, even if spread over 100vw, is compressed over the current width of the bar: image

Whereas using div width, I can either use the bar's width or the viewer's width as reference:

image

Saucistophe avatar Sep 09 '24 11:09 Saucistophe