javascript - Transitioning "width"property while DOM is changing -


I want to make a transition to the width of a container, which is equal to the breadth of the container width and content by dom Changing

Here is a link

Ward by code:

  var container = $ (". Container"); Var nav = $ (". Nav"); Var menu = $ ("menu"); $ (".sth1") (function () {nav.detach (); menu.appendTo (container); menu.show ();}); $ ("Button") click (function () {menu.detach (); nav.appendTo (container);});  


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -