Skip to content

Commit

Permalink
feat: main page hover animation
Browse files Browse the repository at this point in the history
  • Loading branch information
raipen committed Mar 22, 2024
1 parent 0cce01f commit 6340133
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react/src/page/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ const MenuCircle = styled(Link)<{ $disable: boolean }>`
transition: all 0.5s ease-in-out;
user-select: none;
cursor: ${props => props.$disable ? "default" : "pointer"};
max-width: 270px;
&:hover {
width: ${props => props.$disable ? "calc(50% - 30px)" : "calc(50% - 10px)"};
max-width: 310px;
}
@media (max-width: 900px) {
@media (max-width: 660px) {
width: calc(100% - 30px);
margin: 10px;
&:hover{
Expand Down

0 comments on commit 6340133

Please sign in to comment.