@hardanonymous/marquee-selector 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/examples/index.html +65 -0
- package/examples/package-lock.json +987 -0
- package/examples/package.json +14 -0
- package/examples/react/index.html +61 -0
- package/examples/react/main.js +109 -0
- package/examples/vanilla/index.html +58 -0
- package/examples/vanilla/main.js +67 -0
- package/examples/vue/index.html +70 -0
- package/examples/vue/main.js +72 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@hardanonymous/marquee-selector)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## 🎮 Demo
|
|
7
|
+
|
|
8
|
+
體驗線上 Demo:[Marquee Selector Demo](https://hard25670559.github.io/MarqueeSelectorVanillaJSExample/)
|
|
7
9
|
|
|
8
10
|
## ✨ 特性
|
|
9
11
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Marquee Selector - Examples</title>
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
font-family: Arial, sans-serif;
|
|
10
|
+
max-width: 800px;
|
|
11
|
+
margin: 50px auto;
|
|
12
|
+
padding: 20px;
|
|
13
|
+
}
|
|
14
|
+
h1 {
|
|
15
|
+
color: #333;
|
|
16
|
+
}
|
|
17
|
+
.examples {
|
|
18
|
+
display: grid;
|
|
19
|
+
gap: 20px;
|
|
20
|
+
margin-top: 30px;
|
|
21
|
+
}
|
|
22
|
+
.example-card {
|
|
23
|
+
border: 1px solid #ddd;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
padding: 20px;
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
color: inherit;
|
|
28
|
+
transition: all 0.3s;
|
|
29
|
+
}
|
|
30
|
+
.example-card:hover {
|
|
31
|
+
border-color: #007bff;
|
|
32
|
+
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
|
|
33
|
+
}
|
|
34
|
+
.example-card h2 {
|
|
35
|
+
margin: 0 0 10px 0;
|
|
36
|
+
color: #007bff;
|
|
37
|
+
}
|
|
38
|
+
.example-card p {
|
|
39
|
+
margin: 0;
|
|
40
|
+
color: #666;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
</head>
|
|
44
|
+
<body>
|
|
45
|
+
<h1>Marquee Selector Examples</h1>
|
|
46
|
+
<p>Choose a framework to see the demo:</p>
|
|
47
|
+
|
|
48
|
+
<div class="examples">
|
|
49
|
+
<a href="/vanilla/index.html" class="example-card">
|
|
50
|
+
<h2>🟨 Vanilla JavaScript</h2>
|
|
51
|
+
<p>Pure JavaScript implementation without any framework</p>
|
|
52
|
+
</a>
|
|
53
|
+
|
|
54
|
+
<a href="/vue/index.html" class="example-card">
|
|
55
|
+
<h2>🟢 Vue.js</h2>
|
|
56
|
+
<p>Vue 3 Composition API example</p>
|
|
57
|
+
</a>
|
|
58
|
+
|
|
59
|
+
<a href="/react/index.html" class="example-card">
|
|
60
|
+
<h2>🔵 React</h2>
|
|
61
|
+
<p>React with hooks implementation</p>
|
|
62
|
+
</a>
|
|
63
|
+
</div>
|
|
64
|
+
</body>
|
|
65
|
+
</html>
|