-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.html
More file actions
226 lines (198 loc) · 8.62 KB
/
Copy pathbasic.html
File metadata and controls
226 lines (198 loc) · 8.62 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Timeline — Demo | Anavo Tech</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: Georgia, "Times New Roman", serif;
background: #f5f0ea;
color: #333;
min-height: 100vh;
}
/* ---- Page chrome ---- */
header {
background: #1a1a1a;
color: #fff;
padding: 28px 40px;
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 { font-size: 20px; font-weight: 400; letter-spacing: 0.1em; }
header span { font-size: 12px; color: #888; letter-spacing: 0.15em; text-transform: uppercase; }
.page-section {
max-width: 900px;
margin: 0 auto;
padding: 48px 32px;
}
.section-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.2em;
color: #8B7355;
margin-bottom: 8px;
}
.section-title {
font-size: 32px;
font-weight: 400;
margin-bottom: 8px;
color: #1a1a1a;
}
.section-subtitle {
font-size: 15px;
color: #666;
line-height: 1.7;
margin-bottom: 40px;
}
.divider {
border: none;
border-top: 1px solid #ddd;
margin: 60px 0;
}
/* Horizontal demo needs wider area */
.section-wide {
max-width: 1100px;
margin: 0 auto;
padding: 48px 32px;
}
/* Dark background for bold preset demo */
.dark-bg {
background: #111;
padding: 48px 0;
}
.dark-bg .page-section { max-width: 900px; }
.dark-bg .section-label { color: #aaa; }
.dark-bg .section-title { color: #fff; }
.dark-bg .section-subtitle { color: #888; }
.dark-bg hr { border-color: #333; }
footer {
background: #1a1a1a;
color: #888;
padding: 24px 40px;
font-size: 13px;
text-align: center;
margin-top: 80px;
}
code {
background: #f0e8dc;
border-radius: 4px;
padding: 2px 8px;
font-family: monospace;
font-size: 13px;
}
.info-box {
background: #fff8f0;
border: 1px solid #e8d8c4;
border-radius: 8px;
padding: 20px 24px;
margin-bottom: 32px;
font-size: 14px;
line-height: 1.7;
color: #555;
}
.info-box strong { color: #333; }
</style>
</head>
<body>
<header>
<h1>⏳ Timeline Plugin</h1>
<span>Anavo Tech · v1.0.0</span>
</header>
<!-- ================================================================
DEMO 1: VERTICAL LAYOUT — default preset, ?data= param
================================================================ -->
<div class="page-section">
<p class="section-label">Demo 1 — Vertical (default preset)</p>
<h2 class="section-title">Company History</h2>
<p class="section-subtitle">
Vertical layout using the <code>?data=</code> parameter.
Scroll to watch the line draw and items fade in.
</p>
<div class="info-box">
<strong>Install snippet:</strong><br>
<code>timeline.min.js?layout=vertical&preset=default&data=[...]</code>
</div>
<!-- Target: #timeline-vertical -->
<div id="timeline-vertical"></div>
</div>
<hr class="divider">
<!-- ================================================================
DEMO 2: ALTERNATE LAYOUT — elegant preset, ul data attributes
================================================================ -->
<div class="page-section">
<p class="section-label">Demo 2 — Alternate / Zigzag (elegant preset)</p>
<h2 class="section-title">Our Story</h2>
<p class="section-subtitle">
Alternate layout using a hidden <code><ul></code> with <code>data-year</code> /
<code>data-title</code> attributes. Items alternate left and right.
</p>
<div class="info-box">
<strong>Install snippet:</strong><br>
<code>timeline.min.js?layout=alternate&preset=elegant&divId=timeline-alt-list</code>
</div>
<!-- Target list (hidden by plugin, but visible here before init for demo clarity) -->
<ul id="timeline-alt-list">
<li data-year="Spring 2018" data-title="The Spark"
data-body="<p>Two designers, a weekend, and a whiteboard full of ideas.</p>">
</li>
<li data-year="Autumn 2019" data-title="First Workshop"
data-body="<p>Hosted 30 attendees in a borrowed studio. Sold out in 48 hours.</p>">
</li>
<li data-year="Spring 2020" data-title="Going Digital"
data-body="<p>Pivoted to online workshops during lockdown. Reached 1,200 students worldwide.</p>">
</li>
<li data-year="Autumn 2021" data-title="First Collection"
data-body="<p>Launched a curated print collection, selling out within three days.</p>">
</li>
<li data-year="Spring 2023" data-title="Studio Opens"
data-body="<p>Permanent home in Lisbon's Mouraria district. The community grows.</p>">
</li>
</ul>
</div>
<hr class="divider">
<!-- ================================================================
DEMO 3: HORIZONTAL LAYOUT — dark preset, ?data= param
================================================================ -->
<div class="dark-bg">
<div class="section-wide">
<p class="section-label">Demo 3 — Horizontal (dark preset)</p>
<h2 class="section-title" style="color:#fff">Product Roadmap</h2>
<p class="section-subtitle">
Horizontal layout. Scroll the timeline left-to-right on desktop;
swipe on mobile. Line draws as you scroll.
</p>
<div class="info-box" style="background:#1a2332;border-color:#2a3a52;color:#a0b8cc;">
<strong style="color:#c8d8e8;">Install snippet:</strong><br>
<code style="background:#0d1a2a;color:#4a9eff;">timeline.min.js?layout=horizontal&preset=dark&data=[...]</code>
</div>
<!-- Target: #timeline-horizontal -->
<div id="timeline-horizontal"></div>
</div>
</div>
<footer>
<p>⏳ Timeline Plugin · <a href="https://anavo.tech/plugins" style="color:#666;">anavo.tech/plugins</a></p>
</footer>
<!-- ================================================================
SCRIPTS
The src paths below point to the local unminified file so this
demo works without a network connection. In production, replace
with the jsDelivr CDN URL.
================================================================ -->
<!-- Demo 1: vertical, default preset, JSON data -->
<script
src="../timeline.js?divId=timeline-vertical&layout=vertical&preset=default&animationType=fade&data=%5B%7B%22year%22%3A%222015%22%2C%22title%22%3A%22Founded%22%2C%22body%22%3A%22%3Cp%3EStarted+in+a+small+apartment+with+three+laptops+and+one+big+idea.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%222017%22%2C%22title%22%3A%22Seed+Round%22%2C%22body%22%3A%22%3Cp%3ERaised+%241.2M+from+angels+who+believed+in+the+mission.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%222019%22%2C%22title%22%3A%22Product+Launch%22%2C%22body%22%3A%22%3Cp%3EShipped+v1.0+to+10%2C000+customers+in+90+days.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%222021%22%2C%22title%22%3A%22Series+A%22%2C%22body%22%3A%22%3Cp%3E%2412M+to+expand+the+team+and+enter+new+markets.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%222023%22%2C%22title%22%3A%22Global+Scale%22%2C%22body%22%3A%22%3Cp%3ENow+operating+in+28+countries+with+a+team+of+120.%3C%2Fp%3E%22%7D%5D"
></script>
<!-- Demo 2: alternate, elegant preset, ul#timeline-alt-list -->
<script
src="../timeline.js?divId=timeline-alt-list&layout=alternate&preset=elegant&animationType=slide&animationSpeed=500"
></script>
<!-- Demo 3: horizontal, dark preset, JSON data -->
<script
src="../timeline.js?divId=timeline-horizontal&layout=horizontal&preset=dark&drawLine=true&scrollSync=false&animationType=fade&animationSpeed=600&data=%5B%7B%22year%22%3A%22Q1+2024%22%2C%22title%22%3A%22Beta%22%2C%22body%22%3A%22%3Cp%3EInvited+beta+with+500+power+users.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%22Q2+2024%22%2C%22title%22%3A%22Public+Launch%22%2C%22body%22%3A%22%3Cp%3EGeneral+availability.+30k+sign-ups+in+week+one.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%22Q3+2024%22%2C%22title%22%3A%22Mobile+App%22%2C%22body%22%3A%22%3Cp%3EiOS+and+Android+apps+shipped.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%22Q4+2024%22%2C%22title%22%3A%22API+v2%22%2C%22body%22%3A%22%3Cp%3EOpen+API+with+500%2B+integrations.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%22Q1+2025%22%2C%22title%22%3A%22Enterprise%22%2C%22body%22%3A%22%3Cp%3ESSO%2C+audit+logs%2C+and+dedicated+support.%3C%2Fp%3E%22%7D%2C%7B%22year%22%3A%22Q3+2025%22%2C%22title%22%3A%22AI+Features%22%2C%22body%22%3A%22%3Cp%3ESmart+summaries+and+auto-tagging+powered+by+LLMs.%3C%2Fp%3E%22%7D%5D"
></script>
</body>
</html>