I'm trying to do a simple animation with jQuery and jQuery Easing plugin. Animations are working well except if they are applied on section.quickReply
Here is my HTML:
<section class="post quickReply">
<form method="POST">
<header>Poster une réponse</header>
<aside>
<!-- Some image here -->
<p><!-- Some link here --></p>
</aside>
<p class="content">
<textarea></textarea>
<input type="submit" value="Poster" />
</p>
</form>
</section>
If I apply this jQuery code, I see the right animation (slide up with easeInOutBounce):
$('section.quickReply form').submit(function(e) {
e.preventDefault();
$('section.quickReply form').slideUp({ duration: 5000, easing: 'easeInOutBounce'});
});
But with that code, I can't see the animation and after 5 seconds my block disappears suddenly:
$('section.quickReply form').submit(function(e) {
e.preventDefault();
$('section.quickReply').slideUp({ duration: 5000, easing: 'easeInOutBounce'});
});
Please help :)