diff options
chore: dvh/dvw aren't exactly stable for long animations on furryfox android, lets just use svh
| -rw-r--r-- | src/routes/anim-gen.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/routes/anim-gen.ts b/src/routes/anim-gen.ts index 883744f..f63a7ca 100644 --- a/src/routes/anim-gen.ts +++ b/src/routes/anim-gen.ts @@ -32,8 +32,8 @@ const visibleStageStyles = `margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; -height: 100dvh; -width: 100dvw; +height: 100svh; +width: 100svw; opacity: 1;`; const hiddenStageStyles = `margin-top: -99999vh; margin-bottom: 99999vh; @@ -58,8 +58,8 @@ const altHiddenStyles = `opacity:0; transform:scaleX(0); width:0; height:0; -margin-left:-100dvw; -margin-right:100dvw;`; +margin-left:-100svw; +margin-right:100svw;`; const altVisibleStyles = `opacity:1; transform:none; width:max-content; @@ -105,10 +105,10 @@ const biosStepHandlers: Step[] = [ (next: () => void) => { const s = anim.selector(`.anmroot #bios .bar`); s.style(`${index === 0 ? hiddenStyles : visibleStyles} -width: ${lastQuantity * 100}dvw;`); +width: ${lastQuantity * 100}svw;`); anim._internal_timeline.now += 1; s.style(`${visibleStyles} -width: ${quantity * 100}dvw;`); +width: ${quantity * 100}svw;`); anim.in(quantity === 1 ? 50 : biosStepInterval, next); }, ) @@ -288,7 +288,7 @@ max-height: 0;`); if (idx === arr.length - 1) { anim .selector('#openrc .openrc-hide-at-last-boot-step') - .style('opacity:1;max-height:90dvh;max-width:100dvw;'); + .style('opacity:1;max-height:90svh;max-width:100svw;'); } anim._internal_timeline.now += 1; if (idx === arr.length - 1) { @@ -457,8 +457,8 @@ ${hiddenStageStyles} opacity: 0; width: 0; height: 0; - margin-left: -100dvw; - margin-right: 100dvw; + margin-left: -100svw; + margin-right: 100svw; } ${ttyLines .flatMap((v) => |