-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples.html
47 lines (47 loc) · 1.67 KB
/
examples.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mrdigs.github.io/threedom.css">
<style media="screen">
#playing-card > *:nth-child(1) {
background: url(https://upload.wikimedia.org/wikipedia/commons/a/ab/01_of_spades_A.svg);
background-size: cover;
border-radius: 5px;
}
#playing-card > *:nth-child(2) {
background: url(https://upload.wikimedia.org/wikipedia/commons/d/d4/Card_back_01.svg);
background-size: cover;
border-radius: 5px;
}
</style>
</head>
<body>
<figure class="three-d space">
<figure class="three-d spinning object" style="width:200px;height:290px">
<div style="background: red">Front</div>
<div style="background: blue">Back</div>
</figure>
</figure>
<figure class="three-d space">
<figure class="three-d spinning object" style="width:100px;height:100px">
<div style="background: red; border-radius:50%">Front</div>
<div style="background: blue; border-radius:50%">Back</div>
</figure>
</figure>
<figure class="three-d space">
<figure id="playing-card" class="three-d spinning object" style="width:200px;height:291px">
<div></div>
<div></div>
</figure>
</figure>
<figure class="three-d space">
<figure class="three-d rotating object" style="--width:200px;--height:200px;--depth:200px">
<div style="background: red">1</div>
<div style="background: green">2</div>
<div style="background: blue">3</div>
<div style="background: yellow">4</div>
</figure>
</figure>
</body>
</html>