"Button Effects"
Bootstrap 4.1.1 Snippet by neerajposwal

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Button's Effect</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body style="background-color:yellow;width:100%;height:100vh;font-variant:Small-caps;">
<div class="col-lg-offset-1 col-lg-10">
<h3 style="font-weight:bold;font-size:60px;">New Button Layout And Effect , CSS Button Hover Effect</h3>
</div>
<div class="col-lg-offset-1 col-lg-11 col-md-12 col-sm-12 col-xs-12" style="margin-top:10%;">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<button id="button1">3D Button</button>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<button class="shadow-lg" id="button2">Side Swing</button>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<button id="button3"><div class="underbtn"><div style="color:black">Slide Btn</div></div>
</button>
</div>
</div>
<div class="col-lg-offset-1 col-lg-11 col-md-12 col-sm-12 col-xs-12" style="margin-top:6%;">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
#button1{
width:250px;
height:50px;
font-size:18px;
font-variant:small-caps;
box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #adadad, 0 8px 0 1px rgba(0,0,0,0.4), 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#fff;
outline:none;
border:none;
border-radius:50px;
color:black;
font-weight:bold;
transition-duration: 0.5s;
transition-property: transform;
}
#button1:hover{
transform: scale(0.9);
color:black;
}
#button2{
width:250px;
height:50px;
font-size:18px;
font-variant:small-caps;
outline:none;
border:none;
background-image: linear-gradient(to left, #13fdfd, #00ddff, #00b8ff, #008cff, #0652ff);
color:white;
font-weight:bold;
border-radius:0px 0px 0px 1000px;
box-shadow: 0 10px 10px -5px black;
transition:0.5s;
}
#button2:hover{
border-radius:0px 0px 1000px 0px;
background-image: linear-gradient(to left, #3213fd, #b200b6, #c9007e, #c04260, #a86960);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: