-
Notifications
You must be signed in to change notification settings - Fork 342
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
55fb082
commit 358cab1
Showing
3 changed files
with
113 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,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Dice Loader</title> | ||
</head> | ||
|
||
<body style="background-color: aqua;"> | ||
<div class="MyBox" style="margin-top: 400px;"> | ||
<div class="cube"> | ||
<div class="side front">1</div> | ||
<div class="side back">6</div> | ||
<div class="side right">4</div> | ||
<div class="side left">3</div> | ||
<div class="side top">5</div> | ||
<div class="side bottom">2</div> | ||
</div> | ||
</div> | ||
</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,76 @@ | ||
.MyBox { | ||
perspective: 1000px; | ||
} | ||
|
||
.cube { | ||
font-size: 4em; | ||
width: 2em; | ||
transform-style: preserve-3d; | ||
transform: rotateX(-20deg) rotateY(25deg); | ||
margin: 200px auto; | ||
animation: rotate 6s infinite alternate | ||
} | ||
|
||
@keyframes rotate { | ||
|
||
0% { | ||
transform: rotateY(0deg) translateZ(0em); | ||
} | ||
|
||
20% { | ||
transform: rotateX(90deg) translateZ(0em); | ||
} | ||
|
||
40% { | ||
transform: rotateY(90deg) translateZ(0em); | ||
} | ||
|
||
60% { | ||
transform: rotateY(-90deg) translateZ(0em); | ||
} | ||
|
||
80% { | ||
transform: rotateX(-90deg) translateZ(0em); | ||
} | ||
|
||
100% { | ||
transform: rotateY(-180deg) translateZ(0em); | ||
} | ||
|
||
} | ||
|
||
.side { | ||
position: absolute; | ||
width: 2em; | ||
height: 2em; | ||
background: rgba(65, 56, 56, 0.6); | ||
border: 2px solid rgba(0, 0, 0, 0.5); | ||
color: #fff; | ||
text-align: center; | ||
line-height: 2em; | ||
|
||
} | ||
|
||
.front { | ||
transform: translateZ(1em); | ||
} | ||
|
||
.top { | ||
transform: rotateX(90deg) translateZ(1em); | ||
} | ||
|
||
.right { | ||
transform: rotateY(90deg) translateZ(1em); | ||
} | ||
|
||
.left { | ||
transform: rotateY(-90deg) translateZ(1em); | ||
} | ||
|
||
.bottom { | ||
transform: rotateX(-90deg) translateZ(1em); | ||
} | ||
|
||
.back { | ||
transform: rotateY(-180deg) translateZ(1em); | ||
} |
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