Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @mrkknnthcrz,

    Sorry for the delayed response.

    We are sorry to say currently the plugin doesn’t have any callback feature. Could you please explain a bit of what you want to achieve with the Easy Accordion plugin? If you have any suggestions regarding the plugin you can share them with us. We will try to improve it for the future version of the plugin.

    Thank you.

    Thread Starter mrkknnthcrz

    (@mrkknnthcrz)

    Hi Pulak,

    Longer content makes the active panel not visible on screen.

    I wanted to make the active panel automatically scroll on the top of the screen.

    Similar to this: (please, click the accordion)
    https://codepen.io/ashna-qureshi/pen/pOpMwE

    Thank you for your response.

    • This reply was modified 2 years, 2 months ago by mrkknnthcrz.
    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @mrkknnthcrz,

    You can use the following code as a callback function to achieve the scroll top functionalities.

    ; (function ($) {
    	$('.sp-collapse').on('show.bs.spcollapse', function (e) {
    		var $panel = $(this).closest('.ea-card');
    		setTimeout(function (e) {
    			$('html,body').animate({
    				scrollTop: $panel.offset().top
    			}, 500); 
    		},500)
    	
    	}); 
    })(jQuery);

    Hopefully, this may help you.

    Have a nice day.

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @mrkknnthcrz,

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is the plugin have a callback feature?’ is closed to new replies.