javascript - Add smooth effect on hiding a list -


i have simple hide , show script list. ideally have smooth effect on it. there way make similar to:

https://jqueryui.com/accordion/#sortable

here js:

function togglea() {      var list = document.getelementbyid("lista");      if (list.style.display == "none") {     list.style.display = "block";     } else {         list.style.display = "none";     } } 

have had @ jquery animate?

http://api.jquery.com/animate/


Comments

Popular posts from this blog

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -

mysql - Gateway Timeout Error on Insert 70000 record using Hibernate in Java -