We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae613f commit 6e1ef8dCopy full SHA for 6e1ef8d
src/CircleMenuItem/StyledCircleMenuItem.ts
@@ -9,7 +9,8 @@ interface Props {
9
export const StyledCircleMenuItem = styled.li<Props>`
10
position: absolute;
11
top: 50%;
12
- transform: translateY(-50%);
+ left: 50%;
13
+ transform: translate(-50%, -50%);
14
visibility: hidden;
15
opacity: 0;
16
transition: all 0.5s;
@@ -18,7 +19,7 @@ export const StyledCircleMenuItem = styled.li<Props>`
18
19
${({ menuActive, rotationAngle, $radius }) =>
20
menuActive &&
21
`
- transform: translateY(-50%) rotate(${rotationAngle}deg)
22
+ transform: translate(-50%, -50%) rotate(${rotationAngle}deg)
23
translate(${$radius}rem) rotate(${-rotationAngle}deg);
24
visibility: visible;
25
opacity: 1;
0 commit comments