Skip to content

jakubjasiolek/macy.js-watch

Repository files navigation

Macy - watchCSS

Adds watchCSS option to Macy.js

Usage

Use Macy.js as normal with one additional parameter in options array - watchCSS.

If watchCSS is set to true, you can enable and disable Macy with CSS. watchCSS option watches the content of :after of the carousel element. Macy is enabled if :after content is macy.

    var macy = new Macy({
        container: '#macy-container',
        trueOrder: false,
        waitForImages: false,
        margin: 24,
        columns: 6,
        breakAt: {
            1200: 5,
            940: 3,
            520: 2,
            400: 1
        },
        watchCSS: true,
    });
    #macy-container::after {
        content: 'macy',
        display: none,
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published