-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (115 loc) · 3.99 KB
/
index.html
File metadata and controls
135 lines (115 loc) · 3.99 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="Text-Animation.css">
<link rel="stylesheet" type="text/css" href="Button-Ripple.css">
<link rel="stylesheet" type="text/css" href="Button-Hover.css">
<link rel="stylesheet" type="text/css" href="Contact-icon.css">
<link rel="stylesheet" type="text/css" href="Button-Snake.css">
<link rel="stylesheet" type="text/css" href="Button-Border.css">
<link rel="stylesheet" type="text/css" href="Creative-button.css">
<link rel="stylesheet" type="text/css" href="Liquid-button.css">
<title> CSS Button Effect </title>
</head>
<body>
<!------# Text Animation Effect #------>
<section id="text-animation">
<h2><span>You</span> will get hare <span>all</span> awesome buttons</h2>
</section>
<!------# Button Ripple Effect #------>
<section id="ripples">
<div class="Ripple">
<a class="rip" href="#">Button</a>
<a class="rip" href="#">Button</a>
</div>
</section>
<!------# Button Ripple Effect #------>
<section id="button-hover">
<div class="container">
<button class="btn btn1">Hover Me</button>
<button class="btn btn2">Hover Me</button>
<button class="btn btn3">Hover Me</button>
<button class="btn btn4">Hover Me</button>
</div>
</section>
<!------# Button Ripple Effect #------>
<section id="contact-icon">
<div class="container-icon">
<div class="box">
<div class="icon">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<h4>Address</h4>
<h3>Mirpur-1, Dhaka</h3>
</div>
</div>
<div class="box">
<div class="icon">
<i class="fa fa-phone" aria-hidden="true"></i>
<h4>Mobile</h4>
<h3>+88019 8765 4321</h4>
</div>
</div>
<div class="box">
<div class="icon">
<i class="fa fa-envelope" aria-hidden="true"></i>
<h4>Email</h4>
<h3>info@loremipsum.com</h4>
</div>
</div>
</div>
</section>
<!------# Button Snake Effect #------>
<section id="button-snake">
<a href="#">
<span></span>
<span></span>
<span></span>
<span></span>
Button
</a>
</section>
<!------# Button Border Effect #------>
<section id="button-border">
<a href="#">
<span>Button</span>
</a>
</section>
<!------# Creative Button Hover Effect #------>
<section id="creative-button">
<div class="Creative-container">
<a href="#">
<span>Read More</span>
</a>
<a href="#">
<span>Read More</span>
</a>
</div>
</section>
<!------# Button Border Effect #------>
<section id="liquid-button">
<a href="#">
<span>Button</span>
<div class="liquid"></div>
</a>
</section>
<!------# Button Ripple Effect For JS code #------>
<script type="text/javascript">
const buttons = document.querySelectorAll('a');
buttons.forEach(btn => {
btn.addEventListener('click', function(e) {
let x = e.clientX - e.target.offsetLeft;
let y = e.clientY - e.target.offsetTop;
let ripple = document.createElement('span');
ripple.style.left = x + 'px';
ripple.style.top = y + 'px';
this.appendChild(ripple);
setTimeout(() => {
ripple.remove();
}, 1000);
})
})
</script>
</body>
</html>