mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Make the letter unfold slightly on hover
This might be taking the skeumorphism too far (especially with the animation). But it’s a way of indicating that the letter will ‘unfold’ if you click it. Might revert this, but let’s see how it feels.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// Easing function from: http://easings.net/#easeOutBack
|
||||
$transition-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
$iso-paper-ratio: 70.7%;
|
||||
|
||||
.letter {
|
||||
@@ -21,6 +23,15 @@ $iso-paper-ratio: 70.7%;
|
||||
transform: skew(-1deg, 0deg) scale(1, 0.99);
|
||||
transform-origin: left bottom;
|
||||
box-shadow: inset 0 0 0 2px $panel-colour;
|
||||
transition: transform 0.2s $transition-easing;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
&:after {
|
||||
transform: skew(-1.5deg, 0deg) scale(1, 0.97);
|
||||
transition: transform 0.1s $transition-easing;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user