Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical center spinner #242

Merged
merged 5 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ fieldset legend {
display: block;
height: 1rem;
width: 1rem;
left: calc(50% - 0.5714285714rem);
top: calc(50% - 0.7407407407em);
left: calc(50% - 0.8rem);
top: calc(50% - 0.5rem);
position: absolute;
animation: loading 500ms infinite linear;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ fieldset legend {
display: block;
height: 1rem;
width: 1rem;
left: calc(50% - 0.5714285714rem);
top: calc(50% - 0.7407407407em);
left: calc(50% - 0.8rem);
top: calc(50% - 0.5rem);
position: absolute;
animation: loading 500ms infinite linear;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ fieldset legend {
display: block;
height: 1rem;
width: 1rem;
left: calc(50% - 0.5714285714rem);
top: calc(50% - 0.7407407407em);
left: calc(50% - 0.8rem);
top: calc(50% - 0.5rem);
position: absolute;
animation: loading 500ms infinite linear;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"sass-true": "^6.0.1"
},
"snyk": true
}
}
20 changes: 17 additions & 3 deletions src/base/animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from {
transform: rotate(0deg);
}

to {
transform: rotate(359deg);
}
Expand All @@ -23,6 +24,7 @@

/* Bounce animations */
@keyframes bounce {

from,
20%,
53%,
Expand All @@ -31,21 +33,25 @@
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
transform: translate3d(0, 0, 0);
}

40%,
43% {
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -30px, 0);
}

70% {
animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
transform: translate3d(0, -15px, 0);
}

90% {
transform: translate3d(0, -4px, 0);
}
}

@keyframes bounceIn {

from,
20%,
40%,
Expand All @@ -54,23 +60,29 @@
to {
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

0% {
opacity: 0;
transform: scale3d(0.3, 0.3, 0.3);
}

20% {
transform: scale3d(1.1, 1.1, 1.1);
}

40% {
transform: scale3d(0.9, 0.9, 0.9);
}

60% {
opacity: 1;
transform: scale3d(1.03, 1.03, 1.03);
}

80% {
transform: scale3d(0.97, 0.97, 0.97);
}

to {
opacity: 1;
transform: scale3d(1, 1, 1);
Expand All @@ -81,6 +93,7 @@
from {
opacity: 0;
}

to {
opacity: 1;
}
Expand All @@ -93,6 +106,7 @@
}

@keyframes ping {

75%,
100% {
transform: scale(2);
Expand Down Expand Up @@ -131,8 +145,8 @@
display: block;
height: 1rem;
width: 1rem;
left: calc(50% - (1rem / 1.75));
top: calc(50% - (1em / 1.35));
left: calc(50% - (1rem / 1.25));
top: calc(50% - (1rem / 2));
position: absolute;
animation: loading 500ms infinite linear;
}
Expand Down Expand Up @@ -206,4 +220,4 @@
&.ping {
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
}
}
Loading