0
I would like to define the animation speed of toggleClass
but it didn’t work. I solved the problem with CSS
:
-webkit-transition: all .5s ease;
transition: all .5s ease;
But still, I’d like to know what it would look like jQuery
?
Here’s how I tried :
$(document).ready(function() {
$("#help").click(function() {
$("#faq").toggleClass("col-md-10", 500);
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="col-md-12" id="faq">
<p>
Exemplo exemplo Exemplo exemplo Exemplo exemplo Exemplo exemplo Exemplo exemplo
</p>
<input type="button" id="help" value="change-heigth">
</div>
André good afternoon give a look at this link maybe this is what you are looking for http://jsfiddle.net/UscQk/2/
– Fábio Oliveira