Skip to content

Commit 7c0e7a7

Browse files
committed
added animation for subscribe button
1 parent e54759c commit 7c0e7a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/Donation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ const Donation: React.FC = () => {
161161
<motion.button
162162
className="px-6 py-2 bg-red-500 text-white font-bold rounded-r-full shadow-lg hover:bg-red-600 transition duration-300"
163163
variants={buttonAnimation}
164-
whileTap={'tap'}
165-
whileHover={'hover'}
164+
whileHover="whileHover"
165+
whileTap="whileTap"
166166
type="submit"
167167
>
168168
SUBSCRIBE

src/styles/Animations.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,12 +1015,12 @@ export const featureSectionAnimations = {
10151015
};
10161016

10171017
export const buttonAnimation: Variants = {
1018-
hover: {
1018+
whileHover: {
10191019
scale: 1.05,
1020-
transition: { type: 'spring', stiffness: 400, damping: 10 },
1020+
transition: { type: "spring", stiffness: 400, damping: 10 },
10211021
},
1022-
tap: {
1022+
whileTap: {
10231023
scale: 0.95,
1024-
transition: { type: 'spring', stiffness: 400, damping: 10 },
1024+
transition: { type: "spring", stiffness: 400, damping: 10 },
10251025
},
10261026
};

0 commit comments

Comments
 (0)