-
AuthorPosts
-
July 1, 2016 at 6:51 pm #946154
I’d like to do one of the following.
- have the page scroll to the accordion item that was just clicked. or
- be able to open AND close an item (currently I can’t close an item). or
- be able to have multiple items open at the same time
My problem is that I have long articles, so I scroll down to read, and when I click on the next item the long article closes and a short article opens, so I’m NOT at the part of the page where I want to be.
How can I scroll to the "active" item? Or even better, be able to have multiple items open at the same time (not auto-close items)?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 4, 2016 at 2:32 am #946446Hi
Could you put the URL of that page here so we can see how it looks like?
July 7, 2016 at 5:44 pm #947792This reply has been marked as private.July 7, 2016 at 5:45 pm #947794This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 8, 2016 at 10:44 pm #948149This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 11, 2016 at 3:05 am #948636I understand your point but this extension is pretty old, it was created long time ago.
I’ve also passed to the team for further consideration on implementing these features. You can check its status here: http://pm.joomlart.com/browse/JAECMODEACCORDIONJ17-60
Mr.Cat ModeratorMr.Cat
- Join date:
- December 2016
- Posts:
- 270
- Downloads:
- 24
- Uploads:
- 69
- Thanks:
- 58
- Thanked:
- 53 times in 50 posts
January 8, 2018 at 3:25 am #1085430This code helps you "scroll to element that has been clicked". Add it to module layout, inside of script tag.
jQuery(document).ready(function() { jQuery('.ja-accordion-title').on('click', function() { var elm = jQuery(this); setTimeout(function(){ var top = elm.offset().top - 56; jQuery('html,body').animate({scrollTop:top}, 300); }, <?php echo intval($params->get('duration'))?> + 100); }); });
Wisdom is not a product of schooling but of the lifelong attempt to acquire it.
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by Mr.Cat 6 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum