Skip to content

Commit

Permalink
💫 fix anim on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustLucas committed Oct 4, 2023
1 parent 58c821e commit d04fbc7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,31 @@ const StyledLink = styled(Link)`
color: ${({ theme }) => theme.colors.primary};
font-weight: 700;
position: relative;
transition: all 0.2s ease-in-out;
&::before {
content: "👉";
position: absolute;
font-size: 26px;
left: -50px;
transition: all 0.2s ease-in-out;
}
&::after {
content: "👈";
position: absolute;
font-size: 26px;
right: -50px;
transition: all 0.2s ease-in-out;
}
&:hover {
&::before {
left: -40px;
}
&::after {
right: -40px;
}
}
`;

0 comments on commit d04fbc7

Please sign in to comment.