I made this fade-in style based on Harlowe's:
@-webkit-keyframes fade-in {
0% {opacity: 0},
to
100% {opacity: 1}
}
@keyframes fade-in {
0% {opacity: 0},
to
100% {opacity: 1}
}
.fade-in {
text-decoration: none;
animation: fade-in 1s ease;
-webkit-animation: fade-in 1s ease;
}
This works fine in the passage:
@@.fade-in;Fade in this@@
So I tried making a fade-out style, for words/sentences I want the player to see just for a brief moment:
@-webkit-keyframes fade-out {
0% {opacity: 1},
to
100% {opacity: 0}
}
@keyframes fade-out {
0% {opacity: 1},
to
100% {opacity: 0}
}
.fade-out {
text-decoration: none;
animation: fade-out 1s ease;
-webkit-animation: fade-out 1s ease;
}
However, this doesn't fade the text out:
@@.fade-out;Fade this out@@
Anyone have any ideas as to why this isn't working?