emscripten: Add a glowing animation when loading

This commit is contained in:
Rob Loach 2016-09-10 00:28:14 -04:00 committed by GitHub
parent 8b194788e7
commit 8abd55662f

View File

@ -16,11 +16,34 @@
*/
.webplayer-preview {
cursor: wait;
opacity: 0.3;
opacity: 0.2;
transition: all 0.8s;
-webkit-animation: loading 0.8s ease-in-out infinite alternate;
-moz-animation: loading 0.8s ease-in-out infinite alternate;
animation: loading 0.8s ease-in-out infinite alternate;
}
.webplayer-preview.loaded {
cursor: pointer;
opacity: 1;
-webkit-animation: loaded 0.8s ease-in-out;
-moz-animation: loaded 0.8s ease-in-out;
animation: loaded 0.8s ease-in-out;
}
@-webkit-keyframes loaded {
from {
opacity: 0.2;
}
to {
opacity: 1;
}
}
@-webkit-keyframes loading {
from {
opacity: 0.2;
}
to {
opacity: 0.35;
}
}
/**
@ -55,4 +78,4 @@ textarea {
border-color: transparent;
overflow: auto;
resize: none;
}
}