-
-
Notifications
You must be signed in to change notification settings - Fork 195
/
3615-663e987358a55b05c92d.js
2 lines (2 loc) · 1.31 KB
/
3615-663e987358a55b05c92d.js
1
2
"use strict";(self.webpackChunkembla_carousel_docs=self.webpackChunkembla_carousel_docs||[]).push([[3615],{3615:function(e,n,o){o.r(n),n.default="import EmblaCarousel from 'embla-carousel';\nimport { setupTweenScale } from './EmblaCarouselTweenScale';\nimport { addDotBtnsAndClickHandlers } from '../EmblaCarouselDotButton';\nimport { addPrevNextBtnsClickHandlers } from '../EmblaCarouselArrowButtons';\nimport '../css/base.css';\nimport '../css/sandbox.css';\nimport '../css/embla.css';\n\nconst OPTIONS = {};\n\nconst emblaNode = document.querySelector('.embla');\nconst viewportNode = emblaNode.querySelector('.embla__viewport');\nconst prevBtn = emblaNode.querySelector('.embla__button--prev');\nconst nextBtn = emblaNode.querySelector('.embla__button--next');\nconst dotsNode = document.querySelector('.embla__dots');\n\nconst emblaApi = EmblaCarousel(viewportNode, OPTIONS);\nconst removeTweenScale = setupTweenScale(emblaApi);\n\nconst removePrevNextBtnsClickHandlers = addPrevNextBtnsClickHandlers(emblaApi, prevBtn, nextBtn);\nconst removeDotBtnsAndClickHandlers = addDotBtnsAndClickHandlers(emblaApi, dotsNode);\n\nemblaApi\n .on('destroy', removeTweenScale)\n .on('destroy', removePrevNextBtnsClickHandlers)\n .on('destroy', removeDotBtnsAndClickHandlers);\n"}}]);
//# sourceMappingURL=3615-663e987358a55b05c92d.js.map