Skip to main content

Simple reusable toggle with jquery

Simple reusable jQuery function for toggling visibility of a div with CSS animation.
Script is animating max-height CSS property value of target element.



Required Markup

Required CSS

jQuery Function

CodePen Demo

See the Pen Simple reusable jQuery Toggler by Vlado (@bobz-zg) on CodePen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please don’t paste any HTML, Js or PHP code into comments box, use or similar service to share code examples.

Characters left: 1000