JSFiddle - React, Tailwind, and code Playground
Bootstrap enhance with CSS3 animation
HTML
<link rel="stylesheet" href="http://jenniferperrin.com/jsfiddle/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="http://jenniferperrin.com/jsfiddle/bootstrap/bootstrap-responsive.min.css">
<script src="http://jenniferperrin.com/jsfiddle/bootstrap/bootstrap.min.js"></script>
<div class="container">
<!-- The popover examples -->
<h4>Popover with CSS3 animation</h4>
<div>
<ul class="popover-example">
<li><a data-original-title="Popover on left" data-animation="false" data-easein="tada" href="#" class="btn btn-info" rel="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">tada</a></li>
</ul>
</div>
CSS
@charset "UTF-8";
/*
Animate.css - http://daneden.me/animate
Licensed under the ☺ license (http://licence.visualidiot.com/)
Customized by sike - http://codecanyon.net/user/sike/?ref=sike
Copyright (c) 2012 Dan Eden
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
body { /* Addresses a small issue in webkit: http://bit.ly/NEdoDq */
-webkit-backface-visibility: hidden;
}
.animated {
-webkit-animation-duration: 0.8s;
-moz-animation-duration: 0.8s;
-o-animation-duration: 0.8s;
animation-duration: 0.8s;
-webkit-animation-fill-mode: both;
-moz-animation-fill-mode: both;
-o-animation-fill-mode: both;
animation-fill-mode: both;
}
.animated.hinge {
-webkit-animation-duration: 2s;
-moz-animation-duration: 2s;
-o-animation-duration: 2s;
animation-duration: 2s;
}
@-webkit-keyframes tada {
0% {-webkit-transform: scale(1);}
10%, 20% {-webkit-transform: scale(0.9) rotate(-3deg);}
30%, 50%, 70%, 90%...
JavaScript
$(function() {
$("a[rel=popover]").popover().click(function(f) {
f.preventDefault();
if ($(this).data("easein") != undefined) {
$(this).next().removeClass($(this).data("easein")).addClass("animated " + $(this).data("easein"));
} else {
$(this).next().addClass("animated " + b);
}
});
});