-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
203 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* From the Cube Grid from SpinKit by Tobias Ahlin: | ||
* https://github.com/tobiasahlin/SpinKit/blob/master/examples/9-cube-grid.html | ||
*/ | ||
|
||
.sk-cube-grid { | ||
display: block; | ||
width: 40px; | ||
height: 40px; | ||
margin: 100px auto; | ||
} | ||
|
||
.sk-cube-grid .sk-cube { | ||
width: 33.33%; | ||
height: 33.33%; | ||
background-color: #333; | ||
float: left; | ||
-webkit-animation: sk-cubeGridScaleDelay 2.0s infinite ease-in-out; | ||
animation: sk-cubeGridScaleDelay 2.0s infinite ease-in-out; | ||
} | ||
|
||
.sk-cube-grid .sk-cube1 { | ||
-webkit-animation-delay: 0.2s; | ||
animation-delay: 0.2s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube2 { | ||
-webkit-animation-delay: 0.3s; | ||
animation-delay: 0.3s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube3 { | ||
-webkit-animation-delay: 0.4s; | ||
animation-delay: 0.4s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube4 { | ||
-webkit-animation-delay: 0.1s; | ||
animation-delay: 0.1s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube5 { | ||
-webkit-animation-delay: 0.2s; | ||
animation-delay: 0.2s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube6 { | ||
-webkit-animation-delay: 0.3s; | ||
animation-delay: 0.3s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube7 { | ||
-webkit-animation-delay: 0s; | ||
animation-delay: 0s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube8 { | ||
-webkit-animation-delay: 0.1s; | ||
animation-delay: 0.1s; | ||
} | ||
|
||
.sk-cube-grid .sk-cube9 { | ||
-webkit-animation-delay: 0.2s; | ||
animation-delay: 0.2s; | ||
} | ||
|
||
@-webkit-keyframes sk-cubeGridScaleDelay { | ||
0%, 70%, 100% { | ||
-webkit-transform: scale3D(1, 1, 1); | ||
transform: scale3D(1, 1, 1); | ||
} | ||
|
||
35% { | ||
-webkit-transform: scale3D(0, 0, 1); | ||
transform: scale3D(0, 0, 1); | ||
} | ||
} | ||
|
||
@keyframes sk-cubeGridScaleDelay { | ||
0%, 70%, 100% { | ||
-webkit-transform: scale3D(1, 1, 1); | ||
transform: scale3D(1, 1, 1); | ||
} | ||
|
||
35% { | ||
-webkit-transform: scale3D(0, 0, 1); | ||
transform: scale3D(0, 0, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* From Effect13 from Moving Letters by Tobias Ahlin: | ||
* http://tobiasahlin.com/moving-letters/#13 | ||
*/ | ||
|
||
.spinnerdiv { | ||
width: 450px; | ||
margin: 100px auto; | ||
} | ||
|
||
.ml13div { | ||
width: 450px; | ||
height: 40px; | ||
margin: 100px auto; | ||
text-align: center; | ||
} | ||
|
||
.ml13 { | ||
font-size: 3em; | ||
text-transform: uppercase; | ||
letter-spacing: 0.5em; | ||
font-weight: 900; | ||
} | ||
|
||
.ml13 .letter { | ||
display: inline-block; | ||
line-height: 1em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* From Effect13 from Moving Letters by Tobias Ahlin: | ||
* http://tobiasahlin.com/moving-letters/#13 | ||
*/ | ||
|
||
// Wrap every letter in a span | ||
$('.ml13').each(function () { | ||
$(this).html($(this).text().replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>")); | ||
}); | ||
|
||
anime.timeline({ loop: false }) | ||
.add({ | ||
targets: '.ml13 .letter', | ||
translateY: [100, 0], | ||
translateZ: 0, | ||
opacity: [0, 1], | ||
easing: "easeOutExpo", | ||
duration: 500, | ||
delay: function (el, i) { | ||
return 300 + 30 * i * 3; | ||
} | ||
}).add({ | ||
targets: '.ml13 .letter', | ||
translateY: [0, -100], | ||
opacity: [1, 0], | ||
easing: "easeInExpo", | ||
duration: 500, | ||
delay: function (el, i) { | ||
return 100 + 30 * i * 2; | ||
}, | ||
complete: function (anim) { | ||
window._blazorXstartup.jsReady = true; | ||
console.log("ready2run is go"); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Setup some state to coordinate the ready | ||
// status of the JS spinner and the.NET runtime | ||
window._blazorXstartup = { | ||
jsReady: false, | ||
dnReady: false, | ||
dnSetReady: function () { | ||
window._blazorXstartup.dnReady = true; | ||
return false; | ||
}, | ||
pollForReady: function () { | ||
console.log("Checking for ready!"); | ||
if (window._blazorXstartup.jsReady && window._blazorXstartup.dnReady) { | ||
console.log("Both are ready!"); | ||
document.getElementById("blazorXstartupSpinner").remove(); | ||
document.getElementById("blazorXstartupApp").style.display = ""; | ||
return; | ||
} | ||
|
||
// Keep running it till we're done | ||
window.setTimeout(window._blazorXstartup.pollForReady, 500); | ||
} | ||
}; | ||
// Install a polling function to check the coordinated status | ||
window.setTimeout(window._blazorXstartup.pollForReady, 500); |