You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 line
599 B

  1. const $ = global.$;
  2. import 'jquery.easing';
  3. import Slider from "../slider/slider";
  4. class IHKMHSlider {
  5. constructor(section) {
  6. this.section = section.addClass('initiated');
  7. this.slider = new Slider(section);
  8. this.slider.settings = {
  9. loop: true,
  10. autoplay: true,
  11. infinite: true,
  12. autoplaySpeed: 7000,
  13. animationSpeed: 600,
  14. startSlide: 1,
  15. };
  16. }
  17. }
  18. export default IHKMHSlider;
  19. $('body').on('ihk-init dynamic-component-loaded gfi-dynamic-init', function () {
  20. $('.slider:not(.initiated)').each(function() {
  21. new IHKMHSlider($(this));
  22. });
  23. });