File tree 2 files changed +16
-1
lines changed
components/guild/VoiceChannelActions
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { motion } from 'framer-motion' ;
1
2
import { BiSolidVideo , BiSolidVideoOff } from 'react-icons/bi' ;
2
3
import { LuScreenShare } from 'react-icons/lu' ;
3
4
import { TbConfetti , TbTriangleSquareCircle } from 'react-icons/tb' ;
@@ -16,10 +17,22 @@ const VoiceChannelActions = () => {
16
17
soundBoard : < TbConfetti size = { 24 } /> ,
17
18
} ;
18
19
20
+ const bounceAnimation = {
21
+ y : [ 0 , - 5 , 0 ] ,
22
+ transition : {
23
+ duration : 0.6 ,
24
+ repeat : 3 ,
25
+ repeatType : 'reverse' as const ,
26
+ ease : 'easeInOut' ,
27
+ } ,
28
+ } ;
29
+
19
30
return (
20
31
< S . VoiceChannelActions >
21
32
{ Object . entries ( actions ) . map ( ( [ key , value ] ) => (
22
- < S . Action key = { key } > { value } </ S . Action >
33
+ < motion . div key = { key } initial = { { y : 0 } } whileHover = { bounceAnimation } >
34
+ < S . Action key = { key } > { value } </ S . Action >
35
+ </ motion . div >
23
36
) ) }
24
37
</ S . VoiceChannelActions >
25
38
) ;
Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ export const EmptyParticipant = styled.div`
13
13
justify-content: center;
14
14
15
15
width: 100%;
16
+
17
+ background-color: ${ ( { theme } ) => theme . colors . black } ;
16
18
` ;
You can’t perform that action at this time.
0 commit comments