I would like to add animation to the kit with jQuery Mobile . Let me show you a simple example:
<div id="tiles" data-role="collapsible-set" data-iconpos="right">
<div class="tile" data-role="collapsible" data-iconpos="right">blablabla</div>
<div class="tile" data-role="collapsible" data-iconpos="right">blablabla</div>
<div class="tile" data-role="collapsible" data-iconpos="right">blablabla</div>
</div>
jQuery Mobile does a great job and shows me a folding set of 3 elements. I want ANIMATION, but I don't seem to find anything in the docs.
I have not tested how simple CSS animations (animation of the height property) would work, however, is there any way jQuery Mobile does this, like turning some kind of internal flag
EDIT
I tested a simple jQuery animation method and it really works. Just in case someone needs it. It runs smoothly even on my phone with a frequency of 528 MHz in the default browser. The added snippet is really simple:
$( ".ui-collapsible-heading" ).live( "click", function(event, ui) {
$(this).next().css('height', '0').animate({
height: '100px'
});
});
source
share