Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Circle Hover Animation"
Bootstrap 3.2.0 Snippet by
dsirshane94
3.2.0
hover
animation
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
2.1K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <section class="section_0"> <div class="col-sm-3"> <div class="circle circle1"> <a href="#section_1"><h2>1<small>st</small><p>Title</p></h2></a> </div> </div> <div class="col-sm-3"> <div class="circle circle2"> <a href="#section_2"><h2>2<small>nd</small><p>Title</p></h2></a> </div> </div> <div class="col-sm-3"> <div class="circle circle3"> <a href="#section_3"><h2>3<small>rd</small><p>Title</p></h2></a> </div> </div> <div class="col-sm-3"> <div class="circle"> <a href="#section_4"><h2>4<small>th</small><p>Title</p></h2></a> </div> </div> </section> </div> </div>
.circle { margin: 36px; display: inline-block; padding: 16px; text-align: center; width: 180px; height: 180px; border-radius: 50%; border: 2px solid #1d2087; } .circle::before, .circle::after { position: absolute; z-index: -1; display: block; content: ''; } .circle, .circle::before, .circle::after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: all .5s; transition: all .5s; } .circle { position: relative; z-index: 2; background-color: #fff; border: 2px solid #5c5eae; color: #5c5eae; line-height: 50px; overflow: hidden; } .circle:hover { color: #fff; } .circle::after { top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; -webkit-transform: scale(.5); transform: scale(.5); } .circle:hover::after { background: #5c5eae; border-radius: 50%; -webkit-transform: scale(.9); transform: scale(.9); } .circle1 { opacity: 0.4; } .circle2 { opacity: 0.6; } .circle3 { opacity: 0.8; } .circle a { text-decoration: none; color: #1d2087; } .circle h2 { font-size: 60px; } .circle h2 small { color: #1d2087; } .circle p { font-size: 24px; line-height: 26px; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76