-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
executable file
·103 lines (97 loc) · 3.29 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<head>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-063933E3C2"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-063933E3C2");
</script>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#bbdefb" />
<title>D3-Table-Cards</title>
<link rel="canonical" href="https://evoluteur.github.io/d3-table-cards/" />
<link rel="icon" type="image/png" href="favicon.png" />
<link href="css/d3-table-cards.css" rel="stylesheet" />
<link href="css/demo.css" rel="stylesheet" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.12.2/d3.min.js"
charset="utf-8"
></script>
<script src="js/data.js" charset="utf-8"></script>
<script src="js/d3-table-cards.js" charset="utf-8"></script>
<meta
name="description"
content="D3-Table-Cards: Example of using D3.js for transformations between table and cards views, with animated transitions while sorting elements or resizing the browser."
/>
<meta
name="keywords"
content="d3, d3v4, js, table, card, cards, view, javascript, animation, transition, gemstones"
/>
<meta
property="og:image"
content="https://evoluteur.github.io/d3-table-cards/screenshot.gif"
/>
</head>
<body onresize="redraw()" onload="render()">
<h1>D3-Table-Cards</h1>
<div id="opts">
<div>
View: <a href="javascript:redraw('table')">Table</a> /
<a href="javascript:redraw('cards')">Cards</a>
</div>
<div>
Order by: <a href="javascript:sort('name')">Name</a> /
<a href="javascript:sort('chakra')">Chakra</a>
</div>
</div>
<p>
This demo shows animations during transition between cards and table views
or sorting. Click on the links in the top-right corner to see it in
action.
</p>
<div class="holder">
<div class="header sortable">
<div onclick="sort('name')">Gemstone</div>
<div onclick="sort('chakra')">Spiritual properties</div>
</div>
</div>
<p><br /></p>
<p>
Code available at
<a href="https://github.com/evoluteur/d3-table-cards">GitHub</a> with the
MIT license.
</p>
<p>
The same animation done with CSS transitions instead of D3:
<a href="https://evoluteur.github.io/isomorphic-table-cards/"
>isomorphic-table-cards</a
>.
</p>
<div>
More of my D3 animations with
<a href="https://evoluteur.github.io/meet-the-fans">meet-the-fans</a>
and
<a href="https://evoluteur.github.io/d3-dual-range-slider/"
>d3-dual-range-slider</a
>.
</div>
<p>
Gemstones properties from the book
<a href="https://smile.amazon.com/dp/1844090671" target="crystals"
>Healing Crystals</a
>
by Michael Gienger.
</p>
<p>
© 2024 <a href="https://evoluteur.github.io/">Olivier Giulieri</a>.
</p>
</body>
</html>