Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
put stuff in config variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lowiebenoot committed Mar 3, 2017
1 parent c33800e commit c5fbca2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion components/loadingMolecule/config.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
:root {

--loading-molecule-animation-delay: .15s;
--loading-molecule-animation-duration: 2s;
--loading-moledule-scale-small: .5;
--loading-moledule-scale-large: 1.5;
}
20 changes: 10 additions & 10 deletions components/loadingMolecule/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@
}

.left-solid {
animation: pulse 2s ease infinite;
animation-delay: 0.15s;
animation: pulse var(--loading-molecule-animation-duration) ease infinite;
animation-delay: var(--loading-molecule-animation-delay);
}

.left-gradient {
animation: pulse 2s ease infinite;
animation-delay: 0.3s;
animation: pulse var(--loading-molecule-animation-duration) ease infinite;
animation-delay: calc(2 * var(--loading-molecule-animation-delay));
}

.right-solid {
animation: pulse 2s ease infinite;
animation-delay: 0.45s;
animation: pulse var(--loading-molecule-animation-duration) ease infinite;
animation-delay: calc(3 * var(--loading-molecule-animation-delay));
}

.right-gradient {
animation: pulse 2s ease infinite;
animation-delay: 0.6s;
animation: pulse var(--loading-molecule-animation-duration) ease infinite;
animation-delay: calc(4 * var(--loading-molecule-animation-delay));
}

.small svg {
transform: scale(.5);
transform: scale(var(--loading-moledule-scale-small));
}

.large svg {
transform: scale(1.5);
transform: scale(var(--loading-moledule-scale-large));
}

@keyframes pulse {
Expand Down

0 comments on commit c5fbca2

Please sign in to comment.