-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
87 lines (82 loc) · 2.3 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<!-- Made with Peel.js by @andrewplummer (https://andrewplummer.github.io/peel-js/) -->
<title>thank you</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Chivo&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/peel.css">
<script src="src/stickereffect.js"></script>
<style type="text/css">
.container {
width: 90%;
margin: 15% auto;
font-family: 'Chivo', sans-serif;
}
.peel {
height: 200px;
width: 200px;
margin: 25px auto;
text-align: center;
}
.peel p {
margin: 45px;
}
.heart {
/*line-height: 150px;*/
}
.heart .peel-bottom {
background-color: #ebeff2;
}
.heart .peel-top {
background-color: #F05B7A;
padding-top: 24px;
font-weight: bold;
}
.heart .peel-back {
background-color: #ed8484;
}
.under-message {
text-align: center;
margin-top: 100px;
opacity: 0;
transition: opacity 3s ease-in-out;
-moz-transition: opacity 3s ease-in-out;
-webkit-transition: opacity 3s ease-in-out;
}
.under-message-visible {
opacity: 1;
}
</style>
</head>
<body>
<div class="container">
<div id="heart-drag" class="heart peel">
<div class="peel-top"><p>Peel me!</p></div>
<div class="peel-back"></div>
<div class="peel-bottom"><p>Thank you for being part of DEV</p></div>
</div>
<div id="under-message" class="under-message">
<p>
Here's to community, transparency and accessibility in 2021.
</p>
<p>
<a href="https://www.forem.com/future/">The Forem Team is with you</a>
</p>
</div>
</div>
<script type="text/javascript">
var p = new Peel('#heart-drag', {
path: {
d: 'M101.260605,31.4241113 C122.403839,-11.2687842 173.108983,1.11145064 183.007355,11.8447551 C237.311569,70.7295532 142.521446,119.347653 101.260608,174.571349 C51.8099036,119.347653 -39.0680406,68.307428 18.4502396,11.8447553 C33.183089,-2.61770866 77.7850024,-11.2687842 101.260605,31.4241113 Z'
}
});
p.setCorner(101, 175);
p.handleDrag(function(evt, x, y) {
this.setPeelPosition(x, y);
});
</script>
</body>
</html>