A simple way to add a CSS3 flip effect to your content.
Download the production version or the development version.
In your web page:
<script src="//code.jquery.com/jquery.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<script src="jquery.flipper.min.js"></script>
<section id="myFlipper">
<!-- You must add the id "flipper-inside" inside your flipper container. -->
<div id="flipper-inside">
<!-- There should be two elements in the #flipper-inside. They can have any class or id you choose. -->
<section class="front"></section>
<section class="back"></section>
</div>
</section>
<script>
$('#myFlipper').flipper({
rotationType: 'left-slide',
depth: 1000,
speed: 0.2
});
</script>
You can also pass flipper options.
-
rotationType [string] the type of rotation (left, right, up, down, left-slide, right-slide)
-
depth [number] the perspective applied to the element rotation (100 - 1000)
-
speed [number] the speed of the rotation (0.1 - 2.0)
View the demo here or in the demo directory.