mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: replace framer-motion FadeIn with CSS keyframe animations in hero to fix rendering issue
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { FadeIn } from "./fade-in";
|
|
||||||
import { TypingCursor } from "./typing-cursor";
|
import { TypingCursor } from "./typing-cursor";
|
||||||
|
|
||||||
const wordCloud = [
|
const wordCloud = [
|
||||||
@@ -115,26 +114,19 @@ export function Hero() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="relative mx-auto max-w-4xl text-center">
|
<div className="relative mx-auto max-w-4xl text-center">
|
||||||
<FadeIn>
|
<h1 className="animate-[fadeUp_0.6s_ease-out_both] text-4xl font-extrabold tracking-tight sm:text-5xl md:text-6xl lg:text-7xl">
|
||||||
<h1 className="text-4xl font-extrabold tracking-tight sm:text-5xl md:text-6xl lg:text-7xl">
|
|
||||||
Your images. Stay yours.
|
Your images. Stay yours.
|
||||||
</h1>
|
</h1>
|
||||||
</FadeIn>
|
|
||||||
|
|
||||||
<FadeIn delay={0.1}>
|
<p className="mt-4 animate-[fadeUp_0.6s_ease-out_0.1s_both] text-lg text-muted md:text-xl">
|
||||||
<p className="mt-4 text-lg text-muted md:text-xl">
|
|
||||||
The open-source, self-hosted image processing platform.
|
The open-source, self-hosted image processing platform.
|
||||||
</p>
|
</p>
|
||||||
</FadeIn>
|
|
||||||
|
|
||||||
<FadeIn delay={0.15}>
|
<p className="mt-4 animate-[fadeUp_0.6s_ease-out_0.2s_both] text-xl font-medium md:text-2xl">
|
||||||
<p className="mt-4 text-xl font-medium md:text-2xl">
|
|
||||||
<TypingCursor />
|
<TypingCursor />
|
||||||
</p>
|
</p>
|
||||||
</FadeIn>
|
|
||||||
|
|
||||||
<FadeIn delay={0.2}>
|
<div className="mt-10 animate-[fadeUp_0.6s_ease-out_0.3s_both]">
|
||||||
<div className="mt-10">
|
|
||||||
<a
|
<a
|
||||||
href="https://github.com/ashim-hq/ashim"
|
href="https://github.com/ashim-hq/ashim"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -147,7 +139,6 @@ export function Hero() {
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</FadeIn>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -18,3 +18,14 @@
|
|||||||
.tool-card:hover {
|
.tool-card:hover {
|
||||||
border-color: var(--cat-color);
|
border-color: var(--cat-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes fadeUp {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(20px);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user