HTML code
This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection
Download <!-- Font Awesome -->
<script src="https://use.fontawesome.com/cb2d0db4c2.js"></script>
<div class="container">
<div class="row">
<div class="col-md-10 icons-container">
<ul class="row text-center">
<a href="" >
<li id="coffee-circle" >
<span>
<i class="fa fa-coffee fa-4x" id="coffee-icon">
</i>
<b class="icon-description">
Coffee
</b>
</span>
</li>
</a>
<a href="">
<li id="cog-circle">
<span>
<i class="fa fa-cog fa-4x" id="cog-icon">
</i>
<b class="icon-description">
Cog!!
</b>
</span>
</li>
</a>
<a href="">
<li id="upload-circle">
<span>
<i class="fa fa-upload fa-4x" id="upload-icon">
</i>
<b class="icon-description">
Upload
</b>
</span>
</li>
</a>
</ul>
</div>
<div class="col-md-4">
</div>
</div>
</div>
CSS code
This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection
Download.icons-container ul li {
display: inline-block;
width: 12.2em;
height: 12.2em;
border: 1px solid #ccc;
padding: 40px;
border-radius: 50%;
margin: 2.25em;
line-height: 3.5em;
color: #999;
transition: 1s 0s linear;
}
.change-color {
border-color: orange !important;
border: 4px solid orange !important;
color: orange !important;
}
.fa-coffee {
transition: 1s 0s linear;
}
.fa-cog {
transition: 1s 0s linear;
}
.fa-upload {
transition: 1s 0s linear;
}
.animate-coffee {
-moz-transform: scale(1.2) rotate(-45deg);
-webkit-transform: scale(1.2) rotate(-45deg);
-o-transform: scale(1.2) rotate(-45deg);
-ms-transform: scale(1.2) rotate(-45deg);
transform: scale(1.2) rotate(-45deg);
}
.animate-cog {
transform: scale(1.2);
}
.animate-upload {
-moz-transform: scale(1.2) translateY(-10px);
-webkit-transform: scale(1.2) translateY(-10px);
-o-transform: scale(1.2) translateY(-10px);
-ms-transform: scale(1.2) translateY(-10px);
transform: scale(1.2) translateY(-10px);
}
Javascript/Jquery code
This is the javascript code used to create this bootstrap snippet, You can copy and paste the following javascript code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection
Download$(document).ready(function() {
$("#coffee-circle").on("mouseenter", function() {
$('#coffee-icon').addClass('animate-coffee');
$(this).addClass("change-color");
});
$("#coffee-circle").on("mouseleave", function() {
$('#coffee-icon').removeClass('animate-coffee');
$(this).removeClass("change-color");
});
$("#cog-circle").on("mouseenter", function() {
$('#cog-icon').addClass('fa-spin');
$(this).addClass("change-color");
});
$("#cog-circle").on("mouseleave", function() {
$('#cog-icon').removeClass('animate-cog fa-spin');
$(this).removeClass("change-color");
});
$("#upload-circle").on("mouseenter", function() {
$('#upload-icon').addClass('animate-upload');
$(this).addClass("change-color");
});
$("#upload-circle").on("mouseleave", function() {
$('#upload-icon').removeClass('animate-upload');
$(this).removeClass("change-color");
});
});
About this bootstrap example/template
This example/template, Rounded animated icons, was published on Sep 6th 2016, 20:13 by Facundo Chuburu and it is free.
We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.
We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.
This code example currectly have 6.9K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 3.3.6
<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'></script>
This code example is based on bootstrap 3.3.6 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
Jquery plugins
Great built-in plugins with jquery framework, you can easy to change all declarations
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working