forked from koenoe/cocoen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (43 loc) · 1.04 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Cocoen Demo</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: sans-serif;
font-size: 16px;
margin: 2rem;
text-align: center;
}
.container {
position: relative;
margin: auto;
max-width: 700px;
text-align: center;
}
/* cocoen-component::part(drag) {
background: pink;
}
cocoen-component::part(drag)::before {
border-color: pink;
} */
</style>
</head>
<body>
<div class="container">
<h1>Cocoen</h1>
<div class="cocoen">
<img src="before.jpg" alt="" loading="lazy" />
<img src="after.jpg" alt="" loading="lazy" />
</div>
</div>
<script src="dist/cocoen.js"></script>
<script>
Cocoen.parse(document.body);
</script>
</body>
</html>