Finish animations

This commit is contained in:
Jeremy Thomas
2018-04-11 14:01:00 +01:00
parent 823a100d51
commit 3c68b35bfe
4 changed files with 392 additions and 154 deletions

View File

@@ -133,7 +133,7 @@
width: 1em;
}
.is-overlay, .image.is-square img, .image.is-1by1 img, .image.is-5by4 img, .image.is-4by3 img, .image.is-3by2 img, .image.is-5by3 img, .image.is-16by9 img, .image.is-2by1 img, .image.is-3by1 img, .image.is-4by5 img, .image.is-3by4 img, .image.is-2by3 img, .image.is-3by5 img, .image.is-9by16 img, .image.is-1by2 img, .image.is-1by3 img, .modal, .modal-background, .hero-video, .bd-category-toggle, .bd-patreon-button:hover::after, #carbonads .carbon-wrap:hover .carbon-img::after, .intro-spinner, .intro-shadow, .bd-structure-item::before, .bd-structure-item::after, .highlight .bd-show, .bd-banner-background, .bd-book-pattern::before,
.is-overlay, .image.is-square img, .image.is-1by1 img, .image.is-5by4 img, .image.is-4by3 img, .image.is-3by2 img, .image.is-5by3 img, .image.is-16by9 img, .image.is-2by1 img, .image.is-3by1 img, .image.is-4by5 img, .image.is-3by4 img, .image.is-2by3 img, .image.is-3by5 img, .image.is-9by16 img, .image.is-1by2 img, .image.is-1by3 img, .modal, .modal-background, .hero-video, .bd-category-toggle, .bd-patreon-button:hover::after, #carbonads .carbon-wrap:hover .carbon-img::after, .bd-focus-item::before, .intro-spinner, .intro-shadow, .bd-structure-item::before, .bd-structure-item::after, .highlight .bd-show, .bd-banner-background, .bd-book-pattern::before,
.bd-book-modal-column.bd-is-cover::before, .bd-book-pattern, .bd-book-modal-background {
bottom: 0;
left: 0;
@@ -10487,31 +10487,72 @@ svg {
.bd-focus-item {
border-radius: 6px;
padding-top: 1.25rem;
position: relative;
}
.bd-focus-item .title a,
.bd-focus-item .subtitle {
transition-duration: 172ms;
transition-property: background-color;
transition-property: color;
}
.bd-focus-item .title {
position: relative;
transition-duration: 172ms;
transition-property: color;
}
.bd-focus-item .subtitle {
color: #b5b5b5;
position: relative;
}
.bd-focus-item .subtitle strong {
color: currentColor;
}
.bd-focus-item .title {
transition-duration: 172ms;
transition-property: color;
}
.bd-focus-item:hover {
.bd-focus-item::before {
background-color: #fafafa;
border-radius: 6px;
content: "";
display: block;
opacity: 0;
pointer-events: none;
transform: scale(1.1);
transform-origin: center;
transition-duration: 172ms;
transition-property: opacity, transform;
}
.bd-focus-item:hover .title {
.bd-focus-item:hover::before {
opacity: 1;
transform: scale(1);
}
.bd-focus-item:hover .subtitle {
color: #4a4a4a;
}
.bd-focus-item:nth-child(1):hover .title {
color: #ff470f;
}
.bd-focus-item:nth-child(2):hover .title {
color: #23d160;
}
.bd-focus-item:nth-child(3):hover .title {
color: #3273dc;
}
.bd-focus-item:nth-child(4):hover .title {
color: #0a0a0a;
}
.bd-focus-icon {
position: relative;
}
.bd-focus-mobile {
color: #b86bff;
margin-right: -20px;
@@ -10531,6 +10572,7 @@ svg {
position: relative;
height: 3rem;
margin: 0 auto;
top: -0.5rem;
width: 3rem;
}
@@ -13105,18 +13147,74 @@ svg {
}
}
.bd-focus-mobile,
.bd-focus-tablet,
.bd-focus-desktop, .bd-focus-cube-1, .bd-focus-cube-2, .bd-focus-cube-3 {
animation-duration: 500ms;
@keyframes bdSlideDown {
from {
opacity: 0;
transform: translateY(-1rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes bdSlideUp {
from {
opacity: 0;
transform: translateY(1rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.bd-focus-item .title, .bd-focus-item .subtitle, .bd-focus-mobile, .bd-focus-tablet, .bd-focus-desktop, .bd-focus-cube-1, .bd-focus-cube-2, .bd-focus-cube-3, .bd-focus-css3, .bd-focus-github {
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.14, 0.71, 0.29, 0.86);
transform-origin: center center;
}
.bd-focus-mobile,
.bd-focus-tablet,
.bd-focus-desktop {
.bd-focus-item .title {
animation-duration: 500ms;
animation-name: bdSlideDown;
}
.bd-focus-item .subtitle {
animation-duration: 500ms;
animation-name: bdSlideUp;
}
.bd-focus-item:nth-child(1) .subtitle {
animation-delay: 125ms;
}
.bd-focus-item:nth-child(2) .title {
animation-delay: 500ms;
}
.bd-focus-item:nth-child(2) .subtitle {
animation-delay: 625ms;
}
.bd-focus-item:nth-child(3) .title {
animation-delay: 1000ms;
}
.bd-focus-item:nth-child(3) .subtitle {
animation-delay: 1125ms;
}
.bd-focus-item:nth-child(4) .title {
animation-delay: 1500ms;
}
.bd-focus-item:nth-child(4) .subtitle {
animation-delay: 1625ms;
}
.bd-focus-mobile, .bd-focus-tablet, .bd-focus-desktop {
animation-duration: 500ms;
animation-name: bdGrow;
transform-origin: bottom center;
}
@@ -13129,7 +13227,7 @@ svg {
animation-delay: 500ms;
}
@keyframes moveCube1 {
@keyframes bdCube1 {
0% {
transform: translate3d(0, -50px, 0);
opacity: 0;
@@ -13140,7 +13238,7 @@ svg {
}
}
@keyframes moveCube2 {
@keyframes bdCube2 {
0% {
transform: translate3d(-40px, 30px, 0);
opacity: 0;
@@ -13151,7 +13249,7 @@ svg {
}
}
@keyframes moveCube3 {
@keyframes bdCube3 {
0% {
transform: translate3d(40px, 30px, 0);
opacity: 0;
@@ -13163,102 +13261,129 @@ svg {
}
.bd-focus-cube-1, .bd-focus-cube-2, .bd-focus-cube-3 {
animation-iteration-count: infinite;
animation-direction: alternate;
animation-duration: 2000ms;
animation-iteration-count: infinite;
}
.bd-focus-cube-1 {
animation-name: moveCube1;
animation-delay: 500ms;
animation-name: bdCube1;
}
.bd-focus-cube-2 {
animation-name: moveCube2;
animation-delay: 250ms;
animation-name: bdCube2;
animation-delay: 750ms;
}
.bd-focus-cube-3 {
animation-name: moveCube3;
animation-delay: 500ms;
animation-name: bdCube3;
animation-delay: 1000ms;
}
@keyframes bdJellyGrow {
0% {
transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0);
}
3.4% {
transform: matrix3d(1.013, 0, 0, 0, 0, 1.016, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
4.7% {
transform: matrix3d(1.018, 0, 0, 0, 0, 1.024, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
6.81% {
transform: matrix3d(1.026, 0, 0, 0, 0, 1.036, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
9.41% {
transform: matrix3d(1.035, 0, 0, 0, 0, 1.047, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
10.21% {
transform: matrix3d(1.038, 0, 0, 0, 0, 1.049, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
13.61% {
transform: matrix3d(1.045, 0, 0, 0, 0, 1.053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
14.11% {
transform: matrix3d(1.046, 0, 0, 0, 0, 1.053, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
17.52% {
transform: matrix3d(1.048, 0, 0, 0, 0, 1.05, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
18.72% {
transform: matrix3d(1.048, 0, 0, 0, 0, 1.047, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
21.32% {
transform: matrix3d(1.048, 0, 0, 0, 0, 1.043, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
24.32% {
transform: matrix3d(1.046, 0, 0, 0, 0, 1.038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
25.23% {
transform: matrix3d(1.045, 0, 0, 0, 0, 1.038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
29.03% {
transform: matrix3d(1.043, 0, 0, 0, 0, 1.036, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
29.93% {
transform: matrix3d(1.042, 0, 0, 0, 0, 1.036, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
35.54% {
transform: matrix3d(1.039, 0, 0, 0, 0, 1.038, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
36.74% {
transform: matrix3d(1.039, 0, 0, 0, 0, 1.039, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
41.04% {
transform: matrix3d(1.038, 0, 0, 0, 0, 1.041, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
44.44% {
transform: matrix3d(1.039, 0, 0, 0, 0, 1.041, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
52.15% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
59.86% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
63.26% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
75.28% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
85.49% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
90.69% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
100% {
transform: matrix3d(1.04, 0, 0, 0, 0, 1.04, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
to {
opacity: 1;
transform: scale(1);
}
}
.bd-focus-css3 {
animation-delay: 1000ms;
animation-duration: 500ms;
animation-name: fadeIn;
}
.bd-focus-github {
animation-delay: 1500ms;
animation-duration: 1500ms;
animation-name: bdJellyPop;
}
@keyframes bdJellyPop {
0% {
opacity: 0;
transform: matrix3d(0.1, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
3.4% {
opacity: 1;
transform: matrix3d(0.384, 0, 0, 0, 0, 0.466, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
4.7% {
transform: matrix3d(0.505, 0, 0, 0, 0, 0.639, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
6.81% {
transform: matrix3d(0.693, 0, 0, 0, 0, 0.904, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
9.41% {
transform: matrix3d(0.895, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
10.21% {
transform: matrix3d(0.947, 0, 0, 0, 0, 1.204, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
13.61% {
transform: matrix3d(1.111, 0, 0, 0, 0, 1.299, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
14.11% {
transform: matrix3d(1.127, 0, 0, 0, 0, 1.298, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
17.52% {
transform: matrix3d(1.187, 0, 0, 0, 0, 1.216, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
18.72% {
transform: matrix3d(1.191, 0, 0, 0, 0, 1.169, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
21.32% {
transform: matrix3d(1.177, 0, 0, 0, 0, 1.062, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
24.32% {
transform: matrix3d(1.135, 0, 0, 0, 0, 0.964, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
25.23% {
transform: matrix3d(1.121, 0, 0, 0, 0, 0.944, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
29.03% {
transform: matrix3d(1.057, 0, 0, 0, 0, 0.907, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
29.93% {
transform: matrix3d(1.043, 0, 0, 0, 0, 0.909, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
35.54% {
transform: matrix3d(0.981, 0, 0, 0, 0, 0.966, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
36.74% {
transform: matrix3d(0.974, 0, 0, 0, 0, 0.981, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
41.04% {
transform: matrix3d(0.965, 0, 0, 0, 0, 1.02, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
44.44% {
transform: matrix3d(0.969, 0, 0, 0, 0, 1.029, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
52.15% {
transform: matrix3d(0.992, 0, 0, 0, 0, 1.006, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
59.86% {
transform: matrix3d(1.005, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
63.26% {
transform: matrix3d(1.007, 0, 0, 0, 0, 0.993, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
75.28% {
transform: matrix3d(1.001, 0, 0, 0, 0, 1.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
85.49% {
transform: matrix3d(0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
90.69% {
transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
100% {
opacity: 1;
transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
}