[jquery effect Slidetoggle ([SPEED,[EASING],[FN]]) This method is used to slide show hidden selected elements

Source: Internet
Author: User
Tags button type

Toggles the visibility of all matching elements by the height change, and optionally triggers a callback function after the switch is complete;

This animation effect only adjusts the height of the element, allowing the matching elements to be hidden or displayed in a "swipe" manner. In jquery 1.3, the upper and lower padding and margin will also be animated, with smoother results

Instance:

;} Html{font:15px/1.2em ' Courier New '; color: #666; width:750px;margin:25px auto;} #show {width:250px;height:400px;background:red;display:none;color: #FFF; line-height:400px;text-indent:8px; padding:10px 30px;margin:70px;text-Align:center;} Button{padding:8px;border:0;outline:none;background: #00E92C; border-radius:2px;} . Wrapall{color: #FF96EC;}</style><script type= ' Text/javascript ' >    $(function(){        $(' button '). Click (function(){            $(' #show '). Slidetoggle (' linear ',function(){                varnum = 0; Console.log (Num++);        });    }); });</script>

[jquery effect Slidetoggle ([SPEED,[EASING],[FN]]) This method is used to slide show hidden selected elements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.