Skip to content

Commit

Permalink
added animation to the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeylitvinenko1 committed Feb 19, 2024
1 parent fd51f0c commit 4fc6375
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import styles from '@/app/ui/home.module.css';
import { montserrat } from '@/app/ui/fonts';
import Image from 'next/image';
import { Metadata } from 'next';
import { motion } from 'framer-motion'
import Link from 'next/link';
import AnimatedText from '../components/annimation';

export const metadata: Metadata = {
title: 'Sergey Litvinenko',
Expand All @@ -13,23 +13,11 @@ export default function Page() {
return (
<div className={styles.container}>
<main className={styles.main}>
<motion.div initial="hidden" animate="visible" variants={{
hidden: {
scale: .8,
opacity:0
},
visible: {
scale: 1,
opacity: 1,
transition: {
delay: .4
}
},
}}>
<h1 className={`${montserrat.className} text-xl md:text-3xl md:leading-normal`}>
My name is Sergey Litvinenko
</h1>
</motion.div>

<h1 className={`${montserrat.className} text-xl md:text-3xl md:leading-normal`}>
<AnimatedText text="My name is Sergey Litvinenko"/>
</h1>

<div className="flex relative top-5 justify-center gap-4 grid-cols-3 grid-rows-1">
<div className="justify-center items-end flex flex-1 flex-row">
<div className="text-center">
Expand Down

0 comments on commit 4fc6375

Please sign in to comment.