More tweaks to animation (#5082)

This commit is contained in:
Hailey 2024-09-02 03:15:31 -07:00 committed by GitHub
parent 05ac76fc89
commit 4abcd65ccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 31 deletions

View file

@ -99,37 +99,33 @@ export function AnimatedLikeIcon({
entering={
shouldAnimate ? circle1Keyframe.duration(300) : undefined
}
style={[
{
position: 'absolute',
backgroundColor: s.likeColor.color,
top: 0,
left: 0,
width: size,
height: size,
zIndex: -1,
pointerEvents: 'none',
borderRadius: size / 2,
},
]}
style={{
position: 'absolute',
backgroundColor: s.likeColor.color,
top: 0,
left: 0,
width: size,
height: size,
zIndex: -1,
pointerEvents: 'none',
borderRadius: size / 2,
}}
/>
<Animated.View
entering={
shouldAnimate ? circle2Keyframe.duration(300) : undefined
}
style={[
{
position: 'absolute',
backgroundColor: t.atoms.bg.backgroundColor,
top: 0,
left: 0,
width: size,
height: size,
zIndex: -1,
pointerEvents: 'none',
borderRadius: size / 2,
},
]}
style={{
position: 'absolute',
backgroundColor: t.atoms.bg.backgroundColor,
top: 0,
left: 0,
width: size,
height: size,
zIndex: -1,
pointerEvents: 'none',
borderRadius: size / 2,
}}
/>
</>
) : null}