I have found numerous jQuery plugins that allow you to "flip" an element; SmashUp Labs' Flip! plugin seems most popular/useful, and it is what I am currently using.
Meanwhile, there are, of course, numerous solutions here and elsewhere for toggling between two different existing div
s, but none of them touch on flipping.
But what I need is for both things to happen. The problem I'm finding with Flip! is that it includes the content as part of the function call, while I actually want to use the flip to toggle between two different existing div
s. I've gotten this to look more-or-less right using an iframe
but then I'm using a fairly unnecessary iframe
and I also have to wait for that frame to load after the flip, which looks bad.
Both "sides" of the flipped div are too large and complex to be reasonably inserted into the function call, and I cannot use something like $('div').text()
because that creates a copy of the div rather than revealing the one that I already have.
So, does anyone know of any library that does flipping, but allows you to specify an element to be made visible after the flipping is over? Or has anyone done this kind of thing with Flip!, perhaps using its callback functions?