Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transition for the cards on mouse leave #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/components/About.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from "react";
import Tilt from "react-tilt";
import { motion } from "framer-motion";
import React from 'react'
import Tilt from 'react-tilt'
import { motion } from 'framer-motion'

import { styles } from "../styles";
import { services } from "../constants";
import { SectionWrapper } from "../hoc";
import { fadeIn, textVariant } from "../utils/motion";
import { styles } from '../styles'
import { services } from '../constants'
import { SectionWrapper } from '../hoc'
import { fadeIn, textVariant } from '../utils/motion'

const ServiceCard = ({ index, title, icon }) => (
<Tilt className='xs:w-[250px] w-full'>
<Tilt className='xs:w-[250px] w-full transition-all'>
<motion.div
variants={fadeIn("right", "spring", index * 0.5, 0.75)}
variants={fadeIn('right', 'spring', index * 0.5, 0.75)}
className='w-full green-pink-gradient p-[1px] rounded-[20px] shadow-card'
>
<div
Expand All @@ -33,7 +33,7 @@ const ServiceCard = ({ index, title, icon }) => (
</div>
</motion.div>
</Tilt>
);
)

const About = () => {
return (
Expand All @@ -44,7 +44,7 @@ const About = () => {
</motion.div>

<motion.p
variants={fadeIn("", "", 0.1, 1)}
variants={fadeIn('', '', 0.1, 1)}
className='mt-4 text-secondary text-[17px] max-w-3xl leading-[30px]'
>
I'm a skilled software developer with experience in TypeScript and
Expand All @@ -60,7 +60,7 @@ const About = () => {
))}
</div>
</>
);
};
)
}

export default SectionWrapper(About, "about");
export default SectionWrapper(About, 'about')