mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2025-12-17 19:36:32 +01:00
Change hover animation of text links
This commit is contained in:
@@ -4,11 +4,27 @@
|
|||||||
// $font-size-root: 20px;
|
// $font-size-root: 20px;
|
||||||
|
|
||||||
p a {
|
p a {
|
||||||
color: rgb(var(--v-theme-primary)) !important;
|
color: rgb(var(--v-theme-primary));
|
||||||
text-decoration: none !important;
|
text-decoration: none;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&:hover {
|
&:before {
|
||||||
text-decoration: underline !important;
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 2px;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: rgb(var(--v-theme-primary));
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
transform-origin: right;
|
||||||
|
transform: scaleX(0);
|
||||||
|
transition: transform .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
transform-origin: left;
|
||||||
|
transform: scaleX(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user