💄(snooze): Fix swipe-to-snooze animation

This commit is contained in:
Ben Gotow 2016-02-24 16:44:16 -08:00
parent fb335c332b
commit f083818c92

View file

@ -105,17 +105,19 @@
}
}
&.swipe-snooze {
transition: background-color linear 150ms;
background-color: mix(#8d6be3, @background-primary, 75%);
&::after {
transition: right linear 150ms, transform linear 150ms;
content: "Snooze";
left: 0;
right: 0;
background-image: url(../static/images/swipe/icon-swipe-snooze@2x.png);
}
&.confirmed {
background-color: #8d6be3;
&::after {
left: 100%;
transform: translateX(-100%);
right: 100%;
transform: translateX(100%);
opacity: 1;
}
}