Skip to content

Commit f9e0e84

Browse files
authored
Merge pull request #156 from Discopigeononline/master
feat - Add Hover Animated Button
2 parents 4f4e89b + aa77e1d commit f9e0e84

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

examples/slider.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
Loading

0 commit comments

Comments
 (0)