jQuery - double click button to open and close element with fadeToggle(), slideToggle or animate() function

0 votes
58 views
added Jun 9, 2021 in jQuery by lcjr First Warrant Officer (9,190 points)
edited Jun 9, 2021 by lcjr
$('#vpex-menu').on('click', function() {
    // $('.full-popup.vpex-popup').animate({
    //     'width': 'toggle'
    // }, 1000);
    $('.full-popup.vpex-popup').fadeToggle();
    $('.full-popup.vpex-popup').slideToggle(100);
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...