-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
70 lines (65 loc) · 2.15 KB
/
test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Orphic</title>
<link rel="stylesheet" href="../dist/css/o.css">
<script src="../dist/js/o.min.js"></script>
<!-- <script src="../src/js/orphic.js"></script> -->
</head>
<body style="background-color: #f1f1f1;">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding: 100px;
}
.mydialog {
width: 300px;
height: 200px;
margin-bottom: 120px;
border-radius: 12px;
overflow: hidden;
}
.mydialog > .mydialogReal
{
padding: 20px;
}
.mydialog2 {
width: 300px;
height: 100px;
border-radius: 12px;
}
</style>
<!--(spread only for "box", "none" also) data-oshval="leftTop: 4; rightBottom: 4, blur: 16, spread: 8" or "left: 4, right: 4, top: 8, bottom: 9" -->
<div class="o-orphic mydialog" data-osh="o-drop, left: 4, right: 8, top: 10, bottom: 6, blur: 9, spread: 0" data-osel="th-odef-smoke">
<div class="o-orphic-back" data-oblur="back" data-oblurrad="9">
<h1>I am from the back</h1>
</div>
<div class="o-orphic-layer mydialogReal">
<div class="o-orphic-stroke mydialogReal">
<h1>I am</h1>
</div>
</div>
</div>
<!-- if you write rgba(xx,xx) then it will not work -->
<div class="o-orphic mydialog2" data-osh="o-box, left: 12, right: 12, top: 12, bottom: 12, blur: 16, spread: 0, color1: rgba(23, 89, 0, 0.4), color2: #00000021" data-osel="th-odef-smoke">
<div class="o-orphic-back" data-oblur="front">
<h1>I am from the back</h1>
</div>
<div class="o-orphic-layer">
<h1>I am 2</h1>
</div>
</div>
<script>
let orphic = new OrphicUI();
orphic.init(document);
orphic.render(document);
</script>
</body>
</html>