Accordion srcoll TOP
-
I use the Widget Accordion and it works fine.
I’m making accordions with a large amount of text. When you read to the bottom and click the next accordion, the large amount of text is collapsed and I’m left at the bottom of the page.I’d like to scroll automatic to top of the specific active panel that is open.
I use this code but it doesnt work.
<script>
jQuery( document ).ready( function( $ ) {
$( ‘.exad-accordion-title’ ).click( function( ) {
var pane = $(this);
setTimeout(function(){
var $panel = pane.closest(‘.exad-accordion-items’);
$(‘html,body’).animate({
scrollTop: $panel.offset().top
}, 500);
}, 300 );
});
});
</script>The page I need help with: [log in to see the link]
- The topic ‘Accordion srcoll TOP’ is closed to new replies.