Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbff433

Browse files
profile card animation tweak
1 parent 7612c97 commit bbff433

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

‎src/components/newbie/ProfileCard/ProfileCard.jsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import './ProfileCard.css'
33
import avatar from './assets/images/image-victor.jpg'
44
import {motion} from 'framer-motion'
5-
import {basicFadeUpProfile, basicFadeUp2Profile, basicScaleUpProfile } from './animation'
5+
import {basicFadeUpProfile, basicFadeUp2Profile, basicFadeUp3Profile,basicScaleUpProfile } from './animation'
66

77
const ProfileCard = () => {
88

@@ -36,7 +36,7 @@ const ProfileCard = () => {
3636
<span className='profile-card-age'>26</span></motion.h2>
3737
</div>
3838
</div>
39-
<motion.p {...basicFadeUp2Profile}
39+
<motion.p {...basicFadeUp3Profile}
4040
className="profile-card-location">
4141
London
4242
</motion.p>
@@ -48,7 +48,7 @@ const ProfileCard = () => {
4848
initial={{opacity:0, scale: 0}}
4949
animate={{opacity:1, scale: 1,
5050
transition: {
51-
delay: 1.8 + (0.2 * index),
51+
delay: 1.4 + (0.2 * index),
5252
ease: 'easeOut',
5353
duration: .6,
5454
}}}

‎src/components/newbie/ProfileCard/animation.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ export const basicFadeUp2Profile = {
1818
}}
1919
}
2020

21+
export const basicFadeUp3Profile = {
22+
initial:{opacity:0, y: 30},
23+
animate:{opacity:1, y: 0,
24+
transition: {
25+
delay: .8,
26+
ease: 'easeOut',
27+
duration: .8,
28+
}}
29+
}
30+
2131
export const basicScaleUpProfile = {
2232
initial:{opacity:0.2, scale: 0.2},
2333
animate:{opacity:1, scale: 1,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /