-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89d6f94
commit 7e6aec2
Showing
3 changed files
with
45 additions
and
0 deletions.
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,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>CodePen - Super Simple CSS Spinner</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body> | ||
<!-- partial:index.partial.html --> | ||
<h1>Super simple CSS spinner</h1> | ||
<div id="loading"></div> | ||
<!-- partial --> | ||
<script src="./script.js"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// recreating https://codepen.io/scottkellum/pen/tzjCK | ||
// just to learn how he did it |
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,26 @@ | ||
@import url(https://fonts.googleapis.com/css?family=Roboto:100); | ||
|
||
body { margin-top: 100px; background-color: #137b85; color: #fff; text-align:center; } | ||
|
||
h1 { | ||
font: 2em 'Roboto', sans-serif; | ||
margin-bottom: 40px; | ||
} | ||
|
||
#loading { | ||
display: inline-block; | ||
width: 50px; | ||
height: 50px; | ||
border: 3px solid rgba(255,255,255,.3); | ||
border-radius: 50%; | ||
border-top-color: #fff; | ||
animation: spin 1s ease-in-out infinite; | ||
-webkit-animation: spin 1s ease-in-out infinite; | ||
} | ||
|
||
@keyframes spin { | ||
to { -webkit-transform: rotate(360deg); } | ||
} | ||
@-webkit-keyframes spin { | ||
to { -webkit-transform: rotate(360deg); } | ||
} |