First, add Flippy JS in your page. Be sure to have jQuery too !
The Flippy content need to be included in a container, this prevents random perspective effects with CSS :
Hello !
Simply call flippy() function
$(".flipbox").flippy({
color_target: "red",
duration: "500",
verso: "woohoo"
});
If you want to reverse last flip, just use reverse() function.
$(".flipbox").flippyReverse();
$(".flipbox").flippy({
color_target: "red",
duration: "500",
verso: "woohoo",
onStart: function(){
// Your code here
}
});
The Flippy plugin works fine for every modern web browser except Internet Explorer 8 and before (of course…). In this demo I used the excanvas.js file to allow the use of canvas in older IE versions. You can find it here.
©