forked from Spyware007/Animating-Buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Spyware007#2064 from medakshchoudhary/medakshchoud…
…hary Added my second button to the repo - contri
- Loading branch information
Showing
2 changed files
with
48 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 @@ | ||
<div class="loader"></div> |
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,47 @@ | ||
.loader { | ||
width: 48px; | ||
height: 48px; | ||
background: #353535; | ||
display: block; | ||
margin: 20px auto; | ||
position: relative; | ||
box-sizing: border-box; | ||
animation: rotationBack 1s ease-in-out infinite reverse; | ||
} | ||
|
||
.loader::before { | ||
content: ''; | ||
box-sizing: border-box; | ||
left: 0; | ||
top: 0; | ||
transform: rotate(45deg); | ||
position: absolute; | ||
width: 48px; | ||
height: 48px; | ||
background: #2e2e2e; | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
.loader::after { | ||
content: ''; | ||
box-sizing: border-box; | ||
width: 32px; | ||
height: 32px; | ||
border-radius: 50%; | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
background: rgb(0, 0, 0); | ||
transform: translate(-50%, -50%); | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
@keyframes rotationBack { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(-360deg); | ||
} | ||
} |