bootstrap button hover effect
Add data-toggle="button" to toggle a button’s active state. If you’re
pre-toggling a button, you must manually add the .active class and
aria-pressed="true" to the <button>.
<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false">
Single toggle
</button>
3.4
5
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<h2 class="text-center page-header">Hover Effect On Button</h2>
<button class="btn-change">Button</button>
<button class="btn-change1">Button</button>
<button class="btn-change2">Button</button>
<button class="btn-change3">Button</button>
<button class="btn-change4">Button</button>
<button class="btn-change5">Button</button>
<button class="btn-change6">Button</button>
<button class="btn-change7">Button</button>
<button class="btn-change8">Button</button>
</div>
</div>
</body>
</html>
Thank you!
5
0
Are there any code examples left?
New code examples in category Html