Skip to content

Commit d6cd466

Browse files
author
Nicholas Thomson
committed
Better opacity fading
1 parent cd8ef6a commit d6cd466

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

app/styles/main.less

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,16 +1123,23 @@ h2.loading {
11231123
text-align: center;
11241124
line-height: 42px;
11251125
color: @bright-blue;
1126-
1127-
-webkit-animation: pulsate 3s ease-out;
1126+
1127+
text-shadow: 0 0 20px rgba(200, 200, 200, .5);
1128+
-webkit-animation: opacity-pulsate 2s linear;
11281129
-webkit-animation-iteration-count: infinite;
1129-
opacity: 0;
1130+
11301131
}
11311132

11321133
@-webkit-keyframes pulsate {
1133-
0% {-webkit-transform: opacity: 0.0;}
1134-
50% {opacity: 1.0;}
1135-
100% {-webkit-transform: opacity: 0.0;}
1134+
0% {text-shadow: 0 0 20px rgba(255, 255, 255, 1);}
1135+
50% {text-shadow: 0 0 0px rgba(255, 255, 255, 0.5);}
1136+
100% {text-shadow: 0 0 20px rgba(255, 255, 255, 1);}
1137+
}
1138+
1139+
@-webkit-keyframes opacity-pulsate {
1140+
0% {opacity: 0.5;}
1141+
50% {opacity: 1;}
1142+
100% {opacity: 0.5;}
11361143
}
11371144

11381145
h2.initiate {

0 commit comments

Comments
 (0)