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

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -