Last active
February 12, 2021 19:29
-
-
Save motrdevua/a5343672f98ee168e0de14d6c64b91cb to your computer and use it in GitHub Desktop.
mixin_icon-halo
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
@mixin icon-halo($radius, $color) { | |
position: relative; | |
border-radius: $radius; | |
transition: all .2s ease-in-out; | |
&::before { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
border-radius: $radius; | |
box-shadow: 0 0 1px 1px $color; | |
content: ""; | |
opacity: 0; | |
transition: all .2s ease-in-out; | |
} | |
&:hover::before { | |
opacity: 1; | |
transition: all .2s ease-in-out; | |
-webkit-transform: scale(1.15); | |
transform: scale(1.15); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment