Render animated hourglass when messages are expiring
parent
1383dc141f
commit
5f92ccd524
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M12 5v10l9 9-9 9v10h24V33l-9-9 9-9V5H12zm20 29v5H16v-5l8-8 8 8zm-8-12l-8-8V9h16v5l-8 8z"/></svg>
|
After Width: | Height: | Size: 188 B |
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 4H12v11h.02l-.02.02L20.98 24 12 32.98l.02.02H12v11h24V33h-.02l.02-.02L27.02 24 36 15.02l-.02-.02H36V4h-4z"/></svg>
|
After Width: | Height: | Size: 210 B |
@ -0,0 +1,36 @@
|
||||
@mixin hourglass($width, $height, $color) {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
vertical-align: text-bottom;
|
||||
@include color-svg('/images/hourglass_full.svg', transparent);
|
||||
background-size: 100%;
|
||||
|
||||
&, &:before, &:after {
|
||||
width: $width;
|
||||
height: $height;
|
||||
}
|
||||
&:before, &:after {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
&:before {
|
||||
background: $color;
|
||||
animation: moveDown 5s linear;
|
||||
animation-duration: inherit;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
&:after {
|
||||
@include color-svg('/images/hourglass_empty.svg', $color);
|
||||
}
|
||||
@keyframes moveDown {
|
||||
from {
|
||||
transform: translateY(0);
|
||||
}
|
||||
to {
|
||||
transform: translateY($height);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue