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
"CSS Animations"
Bootstrap 3.3.0 Snippet by
selvasekhar
3.3.0
animation
Preview
HTML
CSS
View Full Screen
Fork
Fork this
3.6K
 
1 Fav
Post to Facebook
Tweet this
<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> <!------ Include the above in your HEAD tag ----------> <h1> Box animation </h1> <div class="box_border">Box</div> <br> <h1> Button Press Animation </h1> <button class="buttonAnimation">Button Click Here</button> <br><br> <h1> Image Mouse Rotation </h1> <div class="animation_rolling"> <div class="animation"> <div class="side"><img src="https://res.cloudinary.com/www-googleg-com/image/upload/v1482820944/Project/TestWheel/images/bg.jpg" alt="Jimmy Eat World"></div> <div class="side back">Jimmy Eat World</div> </div> </div>
.box_border { background: #2db34a; border-radius: 6px; cursor: pointer; height: 95px; line-height: 95px; text-align: center; transition-property: background, border-radius; transition-duration: 1s; transition-timing-function: linear; width: 95px; } .box_border:hover { background: #ff7b29; border-radius: 120%; } /* button */ .buttonAnimation { border: 0; background: #0087cc; border-radius: 4px; box-shadow: 0 5px 0 #006599; color: #fff; cursor: pointer; font: inherit; margin: 0; outline: 0; padding: 12px 20px; transition: all .1s linear; } .buttonAnimation:active { box-shadow: 0 2px 0 #006599; transform: translateY(3px); } /* transation */ .animation_rolling { cursor: pointer; height: 300px; perspective: 600; position: relative; width: 300px; } .animation { height: 100%; position: absolute; transform-style: preserve-3d; transition: all 1s ease-in-out; width: 100%; } .animation:hover { transform: rotateY(180deg); } .animation .side { backface-visibility: hidden; border-radius: 6px; height: 100%; position: absolute; overflow: hidden; width: 100%; } .animation .back { background: #eaeaed; color: #0087cc; text-align: center; transform: rotateY(180deg); }
Related:
See More
Free Template
Hipster As F*** Cards
67.8K
96
Hamburger Icon Animations
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76