[feat(home)] reduce bouncy animation
This commit is contained in:
parent
ae2a9b99b7
commit
aa07cbaa30
3 changed files with 31 additions and 16 deletions
|
|
@ -3,32 +3,45 @@ import { motion } from "framer-motion";
|
|||
import Link from "next/link";
|
||||
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faArrowRight } from "@fortawesome/free-solid-svg-icons";
|
||||
import { faArrowAltCircleRight } from "@fortawesome/free-regular-svg-icons";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<div className="flex justify-center items-center flex-col mt-5 self-start ">
|
||||
<div className="flex justify-center items-center flex-col mt-5 ">
|
||||
<div className="flex justify-center items-center flex-col mt-5 self-center min-h-[50vh] border-b-2 min-w-[80vw] ">
|
||||
<Link href="/#contact">
|
||||
<motion.h2
|
||||
className="text-xl font-medium mt-3 text-center text-gray-400 hover:underline whitespace-nowrap leading-none md:tracking-[0.5rem]"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.2,
|
||||
}}>
|
||||
Want something like this?
|
||||
</motion.h2>
|
||||
<motion.h1
|
||||
className="text-5xl md:text-7xl font-medium mt-3 hover:underline whitespace-nowrap leading-none"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
y: -200,
|
||||
x: 200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.7,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
delay: 0.5,
|
||||
}}>
|
||||
Get In Touch{" "}
|
||||
<FontAwesomeIcon
|
||||
icon={faArrowRight}
|
||||
className="text-5xl ml-2"
|
||||
icon={faArrowAltCircleRight}
|
||||
className="text-5xl ml-2 "
|
||||
/>
|
||||
</motion.h1>
|
||||
</Link>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue