-
Notifications
You must be signed in to change notification settings - Fork 105
/
BoxBreathing.html
57 lines (55 loc) · 1.34 KB
/
BoxBreathing.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Box Breathing</title>
<style>
.box-breathing {
width: 50vmin;
height: 50vmin;
margin-top: -25vmin;
margin-left: -25vmin;
position: absolute;
top: 50%;
left: 50%;
border-radius: 50%;
border: 5px solid #708090;
}
.box-breathing::after {
width: 44vmin;
height: 44vmin;
margin-top: -22vmin;
margin-left: -22vmin;
position: absolute;
top: 50%;
left: 50%;
border-radius: 50%;
content: '';
background: lightskyblue;
animation: box-breath 16s infinite;
}
@-moz-keyframes box-breath {
0%, 75%, 100% { transform: scale(0.3); }
25%, 50% { transform: scale(1); }
}
@-webkit-keyframes box-breath {
0%, 75%, 100% { transform: scale(0.3); }
25%, 50% { transform: scale(1); }
}
@-o-keyframes box-breath {
0%, 75%, 100% { transform: scale(0.3); }
25%, 50% { transform: scale(1); }
}
@keyframes box-breath {
0%, 75%, 100% { transform: scale(0.3); }
25%, 50% { transform: scale(1); }
}
</style>
</head>
<body>
<div style="text-align: center">
Box Breathing meditation: breath in, hold, breath out, hold.
</div>
<div class="box-breathing"></div>
</body>
</html>