Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* strip unused keyframes, fixes #14 * remove console log * excess star * tsc confusion * leftover comment
- Loading branch information
Peter Bengtsson
committed
Jan 3, 2018
1 parent
c023ff1
commit 31847f7
Showing
5 changed files
with
187 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
.loading, .loaded { | ||
margin-top: 100px; | ||
text-align: center; | ||
} | ||
|
||
/* Portrait and Landscape */ | ||
@media only screen | ||
and (min-device-width: 768px) | ||
and (max-device-width: 1024px) | ||
and (-webkit-min-device-pixel-ratio: 1) { | ||
.loading, .loaded { | ||
margin-top: 50px; | ||
} | ||
} | ||
|
||
.loading { | ||
animation: App-logo-spin infinite 5s linear; | ||
height: 80px; | ||
} | ||
|
||
@keyframes | ||
App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.loaded { | ||
animation-name: pulse; | ||
animation-duration: 3s; | ||
animation-iteration-count: infinite; | ||
animation-timing-function: ease-out; | ||
} | ||
|
||
@keyframes pulse { | ||
0% { | ||
background-color: #fff5f5; | ||
color: #000; | ||
} | ||
100% { | ||
background-color: #8ac3ff; | ||
color: #eee; | ||
} | ||
} | ||
|
||
.stretcher { | ||
height: 250px; | ||
width: 250px; | ||
margin: 0 auto; | ||
background-color: red; | ||
animation-name: stretch; | ||
animation-duration: 1.5s; | ||
animation-timing-function: ease-out; | ||
animation-delay: 0; | ||
animation-direction: alternate; | ||
animation-iteration-count: infinite; | ||
animation-fill-mode: none; | ||
animation-play-state: running; | ||
} | ||
|
||
@keyframes stretch { | ||
0% { | ||
transform: scale(.3); | ||
background-color: red; | ||
border-radius: 100%; | ||
} | ||
50% { | ||
background-color: orange; | ||
} | ||
100% { | ||
transform: scale(1.5); | ||
background-color: yellow; | ||
} | ||
} | ||
|
||
|
||
|
||
@-webkit-keyframes progress-bar-stripes { | ||
0% { | ||
background-position: 1rem 0 | ||
} | ||
to { | ||
background-position: 0 0 | ||
} | ||
} | ||
|
||
@-o-keyframes progress-bar-stripes { | ||
0% { | ||
background-position: 1rem 0 | ||
} | ||
to { | ||
background-position: 0 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link href="index.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<p class="loading"> | ||
L O A D I N G | ||
</p> | ||
<script> | ||
window.onload = () => { | ||
setTimeout(() => { | ||
let el = document.querySelector('.loading') | ||
el.classList.remove('loading') | ||
el.classList.add('loaded') | ||
}, 10) | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters