chore: adjust hero animation

This commit is contained in:
taroj1205 2025-06-06 00:50:48 +12:00
parent 64e904d405
commit d2e0166e64
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
4 changed files with 17 additions and 20 deletions

View file

@ -34,12 +34,12 @@ const {
{community.description}
</p>
<div class="flex w-full flex-wrap gap-3 sm:gap-10 md:justify-center">
<span class="community__button opacity-0 blur-sm">
<div class="community__button opacity-0 blur-sm">
<Button class:list={['px-4']} href="https://github.com/zen-browser">
<GitHubIcon class="size-4" />
<span>{community.lists.freeAndOpenSource.title}</span>
</Button>
</span>
</div>
<div class="community__button flex items-center gap-4 opacity-0 blur-sm">
<CheckIcon class="size-4" />
<span>{community.lists.simpleYetPowerful.title}</span>
@ -74,7 +74,7 @@ const {
filter: { from: 'blur(4px)', to: 'blur(0px)' },
duration: 300,
delay: stagger(150),
easing: 'easeOutQuart',
ease: 'cubicBezier(0.25, 0.1, 0.25, 1)',
autoplay: onScroll({
target: '#community',
debug,

View file

@ -113,7 +113,7 @@ const featureList = [
filter: { from: 'blur(4px)', to: 'blur(0px)' },
duration: 300,
delay: stagger(150),
easing: 'easeOutQuart',
ease: 'cubicBezier(0.25, 0.1, 0.25, 1)',
autoplay: onScroll({
target: '#features',
debug,

View file

@ -44,20 +44,17 @@ const {
<div
class="flex w-2/3 flex-col items-center justify-center gap-3 sm:gap-6 md:w-fit md:flex-row"
>
<Button
class="hero__link-group_button w-fit opacity-0 blur-sm"
href={getLocalePath('/download')}
isPrimary
>
{hero.buttons.beta}
<ArrowRightIcon class="size-4" />
</Button>
<Button
href={getLocalePath('/donate')}
class="hero__link-group_button w-fit opacity-0 blur-sm"
>
{hero.buttons.support}
</Button>
<div class="hero__link-group_button opacity-0 blur-sm">
<Button class="w-fit" href={getLocalePath('/download')} isPrimary>
{hero.buttons.beta}
<ArrowRightIcon class="size-4" />
</Button>
</div>
<div class="hero__link-group_button opacity-0 blur-sm">
<Button class="w-fit" href={getLocalePath('/donate')}>
{hero.buttons.support}
</Button>
</div>
</div>
<SocialMediaStrip class="blur-sm" opacity={0} />
</div>
@ -95,7 +92,7 @@ const {
filter: { from: 'blur(4px)', to: 'blur(0px)' },
duration: 300,
delay: stagger(150),
easing: 'easeOutQuart',
ease: 'cubicBezier(0.25, 0.1, 0.25, 1)',
autoplay: onScroll({
target: '#header',
debug,

View file

@ -50,7 +50,7 @@ const {
filter: { from: 'blur(4px)', to: 'blur(0px)' },
duration: 300,
delay: stagger(150),
easing: 'easeOutQuart',
ease: 'cubicBezier(0.25, 0.1, 0.25, 1)',
autoplay: onScroll({
target: '#sponsors',
debug,