diff --git a/demo/index.html b/demo/index.html index 8af5adc..438564d 100755 --- a/demo/index.html +++ b/demo/index.html @@ -259,6 +259,21 @@

+ +
+
+
Item 1
+
Item 2
+
Item 3
+
Item 4
+
Item 5
+
Item 6
+
Item 7
+
Item 8
+
Item 9
+
Item 10
+
+
diff --git a/demo/main.css b/demo/main.css index e69de29..85b4fb8 100755 --- a/demo/main.css +++ b/demo/main.css @@ -0,0 +1,32 @@ + +.scroll-container { + width: 100%; + overflow-x: auto; + white-space: nowrap; + border: 2px solid #ccc; + padding: 10px; + background-color: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.scroll-content { + display: inline-block; +} + +.item { + display: inline-block; + width: 150px; + height: 150px; + margin-right: 10px; + background-color: #4caf50; + color: white; + text-align: center; + line-height: 150px; + font-size: 18px; + border-radius: 8px; + transition: background-color 0.3s; +} + +.item:hover { + background-color: #45a049; +} \ No newline at end of file