-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
170 lines (165 loc) · 4.34 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/jpg" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Quicksand&display=swap" rel="stylesheet">
<link href="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>CSS Button Hover</title>
</head>
<body>
<div class="container">
<h1>Simple CSS Button hover effect</h1>
<div class="buttons">
<button class="fill-up">Fill Up</button>
<button class="fill-in">Fill In</button>
<button class="neumorphism">Neumorphism</button>
<button class="raise">Raise</button>
<button class="slide">Slide</button>
</div>
<div class="code-section">
<h2>CSS Code</h2>
<!--Fill Up CSS Code-->
<p class="code-title">Fill Up</p>
<pre class="language-css">
<code class="language-css">
/* button styling */
button {
padding: 10px 20px;
background: #f8f3ff;
color: #2D0367;
font-family: "Quicksand", sans-serif;
font-size: 1.2em;
border: 2px solid #2D0367;
transition: 0.25s;
}
button:hover, button:focus {
outline: none;
}
/* hover effects */
.fill-up:hover, .fill-up:focus {
color: #f8f3ff;
box-shadow: inset 0 -3em 0 0 #2D0367;
}
</code>
</pre>
<!--Fill In CSS Code-->
<p class="code-title">Fill In</p>
<pre class="language-css">
<code class="language-css">
/* button styling */
button {
padding: 10px 20px;
background: #f8f3ff;
color: #2D0367;
font-family: "Quicksand", sans-serif;
font-size: 1.2em;
border: 2px solid #2D0367;
transition: 0.25s;
}
button:hover, button:focus {
outline: none;
}
/* hover effects */
.fill-in:hover, .fill-in:focus {
box-shadow: inset 0 0 0 2em #00B0B8;
border-color: #00B0B8;
color: #f8f3ff;
}
</code>
</pre>
<!--Neumorphism CSS Code-->
<p class="code-title">Neumorphism</p>
<pre class="language-css">
<code class="language-css">
/* button styling */
button {
padding: 10px 20px;
background: #f8f3ff;
color: #2D0367;
font-family: "Quicksand", sans-serif;
font-size: 1.2em;
border: 2px solid #2D0367;
transition: 0.25s;
}
button:hover, button:focus {
outline: none;
}
/* hover effects */
.neumorphism {
border: 0;
border-radius: 5px;
}
.neumorphism:hover, .neumorphism:focus {
color: #00B0B8;
transform: translate(0, -5px);
box-shadow: -5px -5px 15px #FFFFFF, 5px 5px 15px #ede0ff;
}
</code>
</pre>
<!--Raise CSS Code-->
<p class="code-title">Raise</p>
<pre class="language-css">
<code class="language-css">
/* button styling */
button {
padding: 10px 20px;
background: #f8f3ff;
color: #2D0367;
font-family: "Quicksand", sans-serif;
font-size: 1.2em;
border: 2px solid #2D0367;
transition: 0.25s;
}
button:hover, button:focus {
outline: none;
}
/* hover effects */
.raise:hover, .raise:focus {
transform: translateY(-0.25em);
box-shadow: 0 0.5em 0.5em -0.4em #00B0B8;
border-color: #00B0B8;
color: #00B0B8;
}
</code>
</pre>
<!--Slide CSS Code-->
<p class="code-title">Slide</p>
<pre class="language-css">
<code class="language-css">
/* button styling */
button {
padding: 10px 20px;
background: #f8f3ff;
color: #2D0367;
font-family: "Quicksand", sans-serif;
font-size: 1.2em;
border: 2px solid #2D0367;
transition: 0.25s;
}
button:hover, button:focus {
outline: none;
}
/* hover effects */
.slide:hover, .slide:focus {
box-shadow: inset 6.5em 0 0 0 #00B0B8;
border-color: #00B0B8;
color: #f8f3ff;
}
</code>
</pre>
</div>
<footer>
Made with <span style="color: red">❤</span> by <a href="https://github.com/arifinizzah">Arifin Izzah</a>
in <a href="https://github.com/infinitedevsign">Infinite Devsign</a>
</footer>
</div>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.12/clipboard.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="javascript.js"></script>
</body>
</html>