You can do something like this, this is a full toggle version:
$("#mySelector").animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
For strictly a fadeout:
$("#mySelector").animate({ height: 0, opacity: 0 }, 'slow');
More Related Contents:
- Fade In on Scroll Down, Fade Out on Scroll Up – based on element position in window
- CSS fade left to right
- Jquery if statement with two class conditions [closed]
- How to check if element is visible after scrolling?
- Comet and jQuery [closed]
- Selected text event trigger in Javascript
- How do I remove tinyMCE and then re-add it?
- Convert MySql DateTime stamp into JavaScript’s Date format
- Child element click event trigger the parent click event
- How to ONLY trigger parent click event when a child is clicked
- Extract all email addresses from bulk text using jquery
- jQuery min/max property from array of elements
- Converting a recursive function into an asynchronous CPS implementation (javascript)
- How can I detect when a new element has been added to the document in jquery?
- How to read line by line of a text area HTML tag
- Is there a way using Jquery to detect the back button being pressed cross browsers
- Get largest value in multi-dimensional array javascript or coffeescript
- send json object from javascript to php
- What does ” [native code] ” mean?
- Getting a diff of two json-objects
- Hour difference between two times(HH:MM:SS a)in momentjs
- call the same jQuery function in multiple buttons
- Set cursor to specific position on specific line in a textarea
- Why does everything display at once, using setTimeout in Javascript?
- AutoComplete in jQuery with dynamically added elements
- Set default time in bootstrap-datetimepicker
- Jquery/Javascript Opacity animation with scroll
- Javascript Highlight Selected Range Button
- Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link
- Does jQuery strip some html elements from a string when using .html()?