There was an error while loading. Please reload this page.
2 parents 4f4e89b + aa77e1d commit f9e0e84Copy full SHA for f9e0e84
examples/slider.html
@@ -0,0 +1,29 @@
1
+<button class="slide-button">Hover Me!</button>
2
+<style type="text/css">
3
+/* CSS styles */
4
+ /* Example by Discopigeon at https://codepen.io/Discopigeon/pen/mdaaVpW */
5
+
6
+ body {
7
+ display: flex;
8
+ justify-content:center;
9
+ }
10
11
+ /* button and hover css */
12
13
+ .slide-button {
14
+ display: inline;
15
+ border: 2px solid #000;
16
+ border-radius: 8px;
17
+ letter-spacing: 2px;
18
+ box-shadow: inset 0 0 0 0 #000;
19
+ transition: all .35s linear;
20
+ background-color: transparent;
21
+ font-size: 80px;
22
+ color: #000;
23
24
25
+ .slide-button:hover {
26
+ color: #fff;
27
+ box-shadow: inset 400px 0 0 0 #000;
28
29
+</style>
images/slider.gif
2.07 MB
0 commit comments