forked from Typetura/Typetura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
82 lines (76 loc) · 2.27 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
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typetura testbed</title>
<link rel="stylesheet" href="typetura.css">
<style>
html {
--from: 0;
--to: 700px;
font-size: 125%;
font-family: system-ui;
animation-name: html;
animation-timing-function: cubic-bezier(0,0.7,0.3,1);
}
@keyframes html {
0% {
font-size: 0px;
}
100% {
font-size: 115%;
}
}
section {
--from: 20rem;
--to: 750px;
}
.container {
width: 100%;
background: #eee;
resize: horizontal;
overflow: hidden;
}
.headline {
margin: 0;
animation-name: headline;
}
@keyframes headline {
from {
font-size: 20px;
font-weight: 900;
color: hsl(330, 96%, 15%);
}
to {
font-size: 72px;
font-weight: 600;
color: hsl(330, 96%, 45%);
}
}
article {
margin-block: 1rem;
}
div {
margin-left: var(--from);
width: calc(var(--to) - var(--from));
height: 4px;
background: hsl(330, 96%, 45%);
}
</style>
</head>
<body>
<section>
<div></div>
<article class="container cq">
<h1 contenteditable class="headline tt">Container scaling</h1>
</article>
<article class="container cq">
<h1 contenteditable class="headline rtt">Viewport scaling</h1>
</article>
<article>
<p>Viewport scaling on root. Test of html styles — Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque dignissimos vel iure explicabo molestiae nisi, ab praesentium eos necessitatibus? Eaque illum doloribus quaerat distinctio fugit, magnam a tempore nemo incidunt. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque dignissimos vel iure explicabo molestiae nisi, ab praesentium eos necessitatibus? Eaque illum doloribus quaerat distinctio fugit, magnam a tempore nemo incidunt. Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque dignissimos vel iure explicabo molestiae nisi, ab praesentium eos necessitatibus? Eaque illum doloribus quaerat distinctio fugit, magnam a tempore nemo incidunt.</p>
</article>
</section>
</body>
</html>