-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: animation for underline and text bg
- Loading branch information
Showing
5 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.animatedUnderline { | ||
display: inline-block; | ||
cursor: pointer; | ||
position: relative; | ||
|
||
&:hover:after { | ||
transform-origin: bottom left; | ||
transform: scaleX(1); | ||
} | ||
|
||
&:after { | ||
content: ''; | ||
transition: transform 0.5s ease-out; | ||
width: 100%; | ||
height: 3px; | ||
background-color: var(--primary-purple); | ||
transform-origin: bottom right; | ||
transform: scaleX(0); | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
} | ||
} | ||
|
||
// .animatedUnderline { | ||
// @apply inline-block cursor-pointer relative after:content-[''] | ||
// after:transition-transform after:duration-300 | ||
// after:ease-out after:w-full after:h-[2px] after:absolute after:bottom-0 after:left-0 | ||
// after:bg-primary-blue after:origin-bottom-right after:scale-x-0 hover:after:scale-x-100 hover:after:origin-bottom-left | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@forward "./transitions"; | ||
@forward "./font-families"; | ||
@forward "./font-families"; | ||
@forward "./custom-text"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters