Skip to content

Commit

Permalink
Modify home page loading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Oct 22, 2023
1 parent 5519c12 commit 76b5ebc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
46 changes: 26 additions & 20 deletions app/templates/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,27 @@
:root {
--layer-size: 9em;
--moveup-distance: 2em; /* 1em */
--x-rotation: 57deg; /* 50deg */
--inter-layer-margin: 3.5em;
}
/**
* Create the loop delay with
* the extra keyframes
*/
@keyframes moveup {
0%, 60%, 100% {
transform: rotateX(50deg) rotateY(0deg) rotateZ(45deg) translateZ(0);
transform: rotateX(var(--x-rotation)) rotateY(0deg) rotateZ(45deg) translateZ(0);
}
25% {
transform: rotateX(50deg) rotateY(0deg) rotateZ(45deg) translateZ(var(--moveup-distance));
transform: rotateX(var(--x-rotation)) rotateY(0deg) rotateZ(45deg) translateZ(var(--moveup-distance));
}
}
@keyframes movedown {
0%, 60%, 100% {
transform: rotateX(50deg) rotateY(0deg) rotateZ(45deg) translateZ(0);
transform: rotateX(var(--x-rotation)) rotateY(0deg) rotateZ(45deg) translateZ(0);
}
25% {
transform: rotateX(50deg) rotateY(0deg) rotateZ(45deg) translateZ(calc(-1 * var(--moveup-distance)));
transform: rotateX(var(--x-rotation)) rotateY(0deg) rotateZ(45deg) translateZ(calc(-1 * var(--moveup-distance)));
}
}
/**
Expand All @@ -137,38 +139,42 @@
.container .layer {
display: block;
position: absolute;
height: var(--layer-size); /* 3em; */
width: var(--layer-size); /* 3em; */
height: var(--layer-size);
width: var(--layer-size);
box-shadow: 10px 10px 4px rgba(0, 0, 0, 0.2); /* 3px 3px 2px rgba(0, 0, 0, 0.2); */
transform: rotateX(50deg) rotateY(0deg) rotateZ(45deg);
transform: rotateX(var(--x-rotation)) rotateY(0deg) rotateZ(45deg);
background-color: rgba(29, 29, 29, 0.9);
}
.container .layer:nth-of-type(1) {
background: #534a47;
margin-top: 1.5em;
border: 1.25em solid var(--tcm-blue-color);
margin-top: var(--inter-layer-margin); /* 1.5em; */
-webkit-animation: movedown 1.8s cubic-bezier(0.39, 0.575, 0.565, 1) 0.9s infinite normal;
animation: movedown 1.8s cubic-bezier(0.39, 0.575, 0.565, 1) 0.9s infinite normal;
}
.container .layer:nth-of-type(1):before {
content: "";
position: absolute;
width: 85%;
height: 85%;
background: #37332f;
}
.container .layer:nth-of-type(2) {
background: #5a96bc;
margin-top: 0.75em;
border: 1.25em solid white;
margin-top: calc(var(--inter-layer-margin) / 2.0); /* 0.75em; */
}
.container .layer:nth-of-type(3) {
background: rgba(255, 255, 255, 0.6);
border: 1.25em solid var(--tcm-blue-color);
-webkit-animation: moveup 1.8s cubic-bezier(0.39, 0.575, 0.565, 1) infinite normal;
animation: moveup 1.8s cubic-bezier(0.39, 0.575, 0.565, 1) infinite normal;
}
/* .container .layer:nth-of-type(3)::after {
content: "";
position: absolute;
bottom: 0.75em;
right: 0.75em;
clip-path: url(#clip);
border-right: 5em solid white;
border-bottom: 5em solid transparent;
border-left: 5em solid transparent;
} */

/* Stage and link styles */
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
2 changes: 1 addition & 1 deletion modules/ref/version_webui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0-alpha.6.0-webui90
v2.0-alpha.6.0-webui91

0 comments on commit 76b5ebc

Please sign in to comment.