jQuery vertical animation

Vertical animation

  • slideDown(speed,callback)

By height change (increasing downward) to dynamically display all matching elements, optionally triggering a callback function after the display is complete.

This animation effect only adjusts the height of the element, allowing the matching elements to be displayed in a "sliding" manner.

speed here (String|Number): (optional) A string of one of three predetermined speeds ("slow", "normal", or "fast") or a millisecond value representing the animation duration ( Such as: 1000)

  • slideUp(speed, callback)

Dynamicly hide all matching elements by changing the height (decreasing upward) , optionally triggering a callback function after hiding is complete.

This animation effect only adjusts the height of the element and can hide the matching elements in a "sliding" manner.

The usage is the same as slideDown.. But the effect is the opposite.

  • slideToggle(speed,callback)

Toggles the visibility of all matching elements via a height change, and optionally triggers a callback function when the toggle is complete.

This animation effect only adjusts the height of the element, allowing the matching element to be hidden or displayed in a "sliding" manner.

   php.cn     


Continuing Learning
||
php.cn
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!