Novicell / novicell-frontend

Novicell default build setup, for compiling PostCSS to CSS, Babeling JS, making SVG sprites, optimizing images and more
https://frontend.novicell.cloud
29 stars 16 forks source link

Pageheader slider missing stuff? #236

Closed Dan9boi closed 5 years ago

Dan9boi commented 6 years ago

From ½ year ago the novicell.slider.js-fil looked like this. Maybe we still need the custom arrow?

'use strict';
/**
 * @name Novicell Slider
 * @desc Slider, for custom arrow use https://flickity.metafizzy.co/options.html#arrowshape
 * @author Emil Ankersen (EAN)
 * @requires https://flickity.metafizzy.co/
 */
var novicell = novicell || {};
novicell.slider = novicell.slider || new function () {
    this.init = function () {
        const elem = document.querySelector('.js-slider');
        if (elem && elem != null) {
            let flkty = new Flickity(elem, {
                // options
                cellAlign: 'left',
                contain: true,
                wrapAround: true,
                arrowShape: 'M0.5,28.8L30,0.5c0.7-0.7,1.8-0.7,2.5,0s0.7,1.7,0,2.4L4.3,30l28.2,27.1c0.7,0.7,0.7,1.7,0,2.4c-0.3,0.3-0.8,0.5-1.2,0.5s-0.9-0.2-1.2-0.5L0.5,31.2C-0.2,30.5-0.2,29.5,0.5,28.8z'
            });
        }
    };
}();
Dan9boi commented 5 years ago

@MKAndersen what's up with this one?

Dan9boi commented 5 years ago

closing due to #289