forked from IanLunn/Hover
-
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.
- Loading branch information
Showing
7 changed files
with
321 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,55 @@ | ||
/* Buzz Out */ | ||
@keyframes buzz-out { | ||
10% { | ||
transform: translateX(3px) rotate(2deg); | ||
} | ||
|
||
20% { | ||
transform: translateX(-3px) rotate(-2deg); | ||
} | ||
|
||
30% { | ||
transform: translateX(3px) rotate(2deg); | ||
} | ||
|
||
40% { | ||
transform: translateX(-3px) rotate(-2deg); | ||
} | ||
|
||
50% { | ||
transform: translateX(2px) rotate(1deg); | ||
} | ||
|
||
60% { | ||
transform: translateX(-2px) rotate(-1deg); | ||
} | ||
|
||
70% { | ||
transform: translateX(2px) rotate(1deg); | ||
} | ||
|
||
80% { | ||
transform: translateX(-2px) rotate(-1deg); | ||
} | ||
|
||
90% { | ||
transform: translateX(1px) rotate(0); | ||
} | ||
|
||
100% { | ||
transform: translateX(-1px) rotate(0); | ||
} | ||
} | ||
|
||
@mixin buzz-out { | ||
display: inline-block; | ||
|
||
@include hacks(); | ||
|
||
&:hover { | ||
animation-name: buzz-out; | ||
animation-duration: .75s; | ||
animation-timing-function: linear; | ||
animation-iteration-count: 1; | ||
} | ||
} |
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,23 @@ | ||
/* Buzz */ | ||
@keyframes buzz { | ||
50% { | ||
transform: translateX(3px) rotate(2deg); | ||
} | ||
|
||
100% { | ||
transform: translateX(-3px) rotate(-2deg); | ||
} | ||
} | ||
|
||
@mixin buzz { | ||
display: inline-block; | ||
|
||
@include hacks(); | ||
|
||
&:hover { | ||
animation-name: buzz; | ||
animation-duration: .15s; | ||
animation-timing-function: linear; | ||
animation-iteration-count: infinite; | ||
} | ||
} |
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,13 @@ | ||
/* Skew Backward */ | ||
@mixin skew-backward { | ||
display: inline-block; | ||
transition-duration: $defaultDuration; | ||
transition-property: transform; | ||
transform-origin: 0 100%; | ||
|
||
@include hacks(); | ||
|
||
&:hover { | ||
transform: skew(10deg); | ||
} | ||
} |
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