diff --git a/src/animations.ts b/src/animations.ts
new file mode 100644
index 0000000..045baf9
--- /dev/null
+++ b/src/animations.ts
@@ -0,0 +1,7 @@
+
+export function getTitleAnimation(delay = 0) {
+ return {
+ initial: { opacity: 0, translateY: 20, filter: 'blur(4px)' },
+ whileInView: { opacity: 1, translateY: 0, filter: 'blur(0px)', transition: { duration: 0.3, delay } },
+ };
+}
diff --git a/src/components/Community.astro b/src/components/Community.astro
index 9cfab3c..0b70800 100644
--- a/src/components/Community.astro
+++ b/src/components/Community.astro
@@ -2,36 +2,46 @@
import Title from '../components/Title.astro'
import Description from '../components/Description.astro'
import Button from '../components/Button.astro'
-import Circles from '../components/Circles.astro'
-import { Image } from 'astro:assets'
-import myImage from '../assets/browser.png'
+import { motion } from 'motion/react';
import {
Github,
Check,
} from 'lucide-astro'
+import { getTitleAnimation } from '../animations'
+
+
---
diff --git a/src/components/Hero.astro b/src/components/Hero.astro
index 243eda1..36b9def 100644
--- a/src/components/Hero.astro
+++ b/src/components/Hero.astro
@@ -7,6 +7,7 @@ import myImage from '../assets/browser.png'
import { ArrowRight } from 'lucide-astro';
import { motion } from 'motion/react';
import { AnimatedText } from './AnimatedText';
+import { getTitleAnimation } from '../animations'
let titleAnimationCounter = 0;
function getNewAnimationDelay() {
@@ -14,11 +15,8 @@ function getNewAnimationDelay() {
return titleAnimationCounter * 0.15;
}
-function getTitleAnimation() {
- return {
- initial: { opacity: 0, translateY: 20, filter: 'blur(4px)' },
- animate: { opacity: 1, translateY: 0, filter: 'blur(0px)', transition: { duration: 0.3, delay: getNewAnimationDelay() } },
- };
+function getHeroTitleAnimation() {
+ return getTitleAnimation(getNewAnimationDelay());
}
---
@@ -29,37 +27,37 @@ function getTitleAnimation() {
>
-
+
Welcome
-
+
to
-
+
a
-
+
calmer
-
+
internet
-
+
Beautifully designed, privacy-focused, and packed with features. We care about your experience, not your data.
-
+
Download
-
+
Start Exploring