Is it possible to get transition flip effects when showing a div manually, similar way as we get when using functions like
$(':mobile-pagecontainer').pagecontainer("change", "create_an_account.html?UUID=" + UUID, {
transition: 'flip'
});
This is my fiddle
http://jsfiddle.net/EwNRJ/2265/
Could you please let me know how to achieve this??
jQM uses CSS transitions for this. for flip, you can use the existing classes called ".flip .in" to flip in and ".flip .out" to flip out.
You use addClass to add the transition classes (
.addClass("flip in")
), then handle the animationend event to remove the classes when the transition is complete. To hide the DIV with a flip:Add the flip and out classes and on animationend, remove the classes and call hide().
NOTE: For more interesting transitions, you can use animate.css with similar code:
https://daneden.github.io/animate.css/