Last active
August 29, 2015 14:17
-
-
Save maximkoretskiy/2f3be33467394653b6ba to your computer and use it in GitHub Desktop.
Blink effect
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
=effect-blink($width, $height) | |
$bl-w: 25px | |
overflow: hidden | |
.no-touch & | |
&:before | |
content: "" | |
bottom: -10px | |
opacity: 0.2 | |
z-index: 10 | |
left: -$bl-w | |
background-color: #fff | |
width: 25px | |
height: $height + 10px | |
transform: rotate(30deg) | |
position: absolute | |
transform: translate($bl-w + -0.3 * $width, 0) rotate(30deg) | |
&:hover:before, | |
&.active:before | |
transition: all 0.8s ease-out | |
opacity: 0.5 | |
width: 0 | |
transform: translate($bl-w + 1.3 * $width, 0) rotate(30deg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment