Sha256: acd1d119b828ea01509b08f083a392379471cc89a3ac53a644bcd1b93654975d

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

module Workarea
  module Storefront
    module SliderHelper
      def style_guide_slider_options
        {
          options: {
            slidesToShow: 1,
            slidesToScroll: 1,
            autoplay: true,
            mobileFirst: true,
            responsive: [
              {
                breakpoint: Workarea.config.storefront_break_points[:medium] - 1,
                settings: {
                  arrows: false,
                  dots: true,
                  slidesToShow: 2,
                  slidesToScroll: 2
                }
              },
              {
                breakpoint: Workarea.config.storefront_break_points[:wide] - 1,
                settings: {
                  arrows: false,
                  dots: true,
                  slidesToShow: 4,
                  slidesToScroll: 4
                }
              }
            ]
          }
        }.to_json
      end

      def style_guide_autoplay_stop_options
        {
          options: {
            autoplay: true,
            autoplaySpeed: 2000,
            pauseOnHover: false
          },
          stopOnInteraction: true
        }.to_json
      end

      def style_guide_slider_wait_for_images
        {
          options: {
            slidesToShow: 1,
            slidesToScroll: 1
          },
          waitForImages: true
        }.to_json
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-slick_slider-1.0.3 app/helpers/workarea/storefront/slider_helper.rb
workarea-slick_slider-1.0.2 app/helpers/workarea/storefront/slider_helper.rb