Skip to content

Commit

Permalink
Fulfill captain requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoshell committed Jun 27, 2024
1 parent bc2731d commit 5d2660b
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,13 @@ body {
width: 50%;
height: 50%;
position: absolute;
top: 20px;
left: 20px;
top: 36px;
left: 24px;
transform-style: preserve-3d;
transform: rotateX(-30deg) rotateY(-45deg);
animation: rotate 5s infinite linear;
transform: rotateX(-10deg) rotateY(-45deg);
animation: scaleAndRotate 5s infinite linear;
animation: scaleAndRotate 5s linear 1;
animation-fill-mode: forwards;
transition: opacity 0.5s ease-in-out;
}

Expand All @@ -378,9 +380,19 @@ body {
.top { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotate {
from { transform: rotateX(-30deg) rotateY(-45deg); }
to { transform: rotateX(-30deg) rotateY(315deg); }
@keyframes scaleAndRotate {
0% {
transform: scale(1.25) rotateX(-10deg) rotateY(0deg);
}
25% {
transform: scale(1) rotateX(-30deg) rotateY(0deg);
}
75% {
transform: scale(1) rotateX(-30deg) rotateY(1350deg); /* 945deg = 3 rotations (360*3 + 45) */
}
100% {
transform: scale(1.25) rotateX(-10deg) rotateY(1350deg); /* 1350deg = 3 more rotations (360*3 + 1350) */
}
}

/* Responsive */
Expand Down

0 comments on commit 5d2660b

Please sign in to comment.