-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (41 loc) · 1.88 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>
<head>
<title>CSS3 Perspective Playground</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<div id="app" v-cloak>
<h2>CSS3 Perspective Playground</h2><main>
<section class="settings">
<div class="settings-container">
<label>perspective: {{perspectiveVal}}px;</label>
<input type="range" min="0" max="999" v-model="perspectiveVal" />
<label>rotateX: {{rotateXVal}}deg; </label>
<input type="range" min="-180" max="180" v-model="rotateXVal" />
<label>rotateY: {{rotateYVal}} deg; </label>
<input type="range" min="-180" max="180" v-model="rotateYVal" />
<label>rotateZ: {{rotateZVal}} deg; </label>
<input type="range" min="-180" max="180" v-model="rotateZVal" />
<button type="button" @click="reset">Reset</button>
<button type="button" @click="copy">Copy</button>
</div>
</section>
<section class="output">
<div class="box-container">
<div class="box" :style="box"></div>
</div>
</section>
</main>
</div>
<css-doodle> :doodle { @grid: 1 / 100vmax; position: absolute; top: 0; left: 0; z-index: -1; } @size: 100% 150%;
position: absolute; background: @m(100, ( linear-gradient(transparent, @p( #FFFDE1@repeat(2, @p([0-9a-f])),
#FB3569@repeat(2, @p([0-9a-f])) )) @r(0%, 100%) @r(0%, 100%) / @r(1px) @r(23vmin) no-repeat )); will-change:
transform; animation: f 50s linear calc(-50s / @size() * @i()) infinite; @keyframes f { from { transform:
translateY(-100%) } to { transform: translateY(100%) } } </css-doodle>
<script src="https://unpkg.com/css-doodle@0.6.1/css-doodle.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://unpkg.com/vue@next"></script>
<script src="app.js"></script>
</body>
</html>