Update webapp - fix hero animation scroll + dark background
All checks were successful
Build Docker Image / build (push) Successful in 4m1s
All checks were successful
Build Docker Image / build (push) Successful in 4m1s
- Fixed animation height to 100vh to prevent squeeze on scroll - Added dark slate-900 background for transparent animation
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="absolute inset-0 overflow-hidden">
|
<div class="absolute inset-0 overflow-hidden bg-slate-900">
|
||||||
<!-- Lottie animation -->
|
<!-- Lottie animation -->
|
||||||
<ClientOnly>
|
<ClientOnly>
|
||||||
<DotLottieVue
|
<DotLottieVue
|
||||||
@@ -7,8 +7,9 @@
|
|||||||
autoplay
|
autoplay
|
||||||
loop
|
loop
|
||||||
:layout="{ fit: 'cover', align: [0.5, 0.5] }"
|
:layout="{ fit: 'cover', align: [0.5, 0.5] }"
|
||||||
class="absolute inset-0 w-full h-full"
|
class="absolute top-0 left-0 w-full"
|
||||||
:style="{
|
:style="{
|
||||||
|
height: '100vh',
|
||||||
opacity: 1 - collapseProgress * 0.7,
|
opacity: 1 - collapseProgress * 0.7,
|
||||||
transform: `scale(${1 + collapseProgress * 0.1})`
|
transform: `scale(${1 + collapseProgress * 0.1})`
|
||||||
}"
|
}"
|
||||||
|
|||||||
Reference in New Issue
Block a user