-
AuthorPosts
-
September 30, 2017 at 8:32 pm #1065036
I’ve been wanting to set the JA Directory ACM slideshow to autoplay. I finally found this code (below) which is applied to this file: templates/ja_directory/acm/slideshow/tmpl/style-owl.php
It works, but I wanted to know if there is a way to add other effects (other than slide), like "fade." I would appreciate some guidance on this.
(function($){ jQuery(document).ready(function($) { $("#acm-slideshow-<?php echo $module->id; ?> .owl-carousel").owlCarousel({ items: 1, nav : true, merge: false, mergeFit: true, margin:10, autoplay:true, loop:true, autoplay:true, autoplayTimeout:1000, autoplayHoverPause:true, autoplaySpeed:5000, slideBy: 1 }); }); })(jQuery);
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 2, 2017 at 9:19 am #1065273Hi,
Try to use additional option for animate plugin of Owl Carousel:
animateIn: 'fadeIn', animateOut: 'fadeOut'
https://owlcarousel2.github.io/OwlCarousel2/demos/animate.html
Remember to clear cache.
October 3, 2017 at 2:33 am #1065412Thank you very much. I’ll follow your instructions and will report back…
October 4, 2017 at 12:27 am #1065583Satuaros, thanks a lot! Now it works perfectly, exactly how I want it. I’m using this:
(function($){ jQuery(document).ready(function($) { $("#acm-slideshow-<?php echo $module->id; ?> .owl-carousel").owlCarousel({ items: 1, nav : true, merge: false, mergeFit: true, margin:0, autoplay:true, loop:true, autoplay:true, autoplayTimeout:5000, autoplayHoverPause:true, autoplaySpeed:6000, slideBy: 1, animateIn: 'fadeIn', animateOut: 'fadeOut' }); }); })(jQuery);
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Saguaros 7 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum