You can use the animate
method:
$('#element').animate({width: 'toggle'});
More Related Contents:
- jQuery toggle class
- How to change the element of another div by clicking and hovering on an element of a different div
- Hide/Show div on specific page with jquery
- HTML nchor Tag doesn’t show link
- Use jQuery to hide a DIV when the user clicks outside of it
- Clear form fields with jQuery
- Scroll to bottom of Div on page load (jQuery)
- jQuery find closest previous sibling with class
- Toggle Checkboxes on/off
- How to detect input type=file “change” for the same file?
- slideToggle in table row
- How do I get the entire page’s HTML with jQuery?
- Resizable table columns with jQuery [closed]
- HTML5 Video autoplay on Mobile Browser
- Replace Div with another Div
- Remove span tag in string using jquery
- How do you create a toggle button?
- Draggable div without jQuery UI
- How to force an HTML form to validate without submitting it via jQuery
- Trying to make multiple background images cycle through a slideshow with CSS and JQUERY
- Jquery Multiple load in a DIV
- submit disabled fields
- What’s faster for including scripts, using CDN (Google) or storing them locally in website’s root?
- JQuery search in static HTML page with highlighting of found word
- Disable select options based on value *through the HTML only!*
- Selectable optgroup using select2
- Html5 drag and drop on svg element
- Possible to have a floating horizontal scrollbar?
- change the href of a css link via jquery
- Can jQuery selectors be used with DOM mutation observers?