{ "version": 3, "sources": ["../../src/js/scrolling-cards.js"], "sourcesContent": ["document.addEventListener('DOMContentLoaded', () => {\n\tconst scrollingSection = document.querySelector('.scrolling-cards .cards')\n\n\tif (scrollingSection) {\n\t\tconst scrollingTrack = scrollingSection.querySelector('.track')\n\n\t\tif (scrollingTrack) {\n\t\t\tcalcScroll(scrollingTrack)\n\n\t\t\twindow.addEventListener('scroll', () => {\n\t\t\t\tcalcScroll(scrollingTrack)\n\t\t\t})\n\t\t}\n\t}\n\n\tfunction calcScroll(track) {\n\t\tlet sectionPos = scrollingSection.getBoundingClientRect().top\n\t\tlet scrollPos = (sectionPos / window.innerHeight) * 100\n\n\t\ttrack.setAttribute('style', `transform: translateX(${scrollPos}%)`)\n\t}\n})\n"], "mappings": "mBAAA,SAAS,iBAAiB,mBAAoB,IAAM,CACnD,IAAMA,EAAmB,SAAS,cAAc,yBAAyB,EAEzE,GAAIA,EAAkB,CACrB,IAAMC,EAAiBD,EAAiB,cAAc,QAAQ,EAE1DC,IACHC,EAAWD,CAAc,EAEzB,OAAO,iBAAiB,SAAU,IAAM,CACvCC,EAAWD,CAAc,CAC1B,CAAC,GAIH,SAASC,EAAWC,EAAO,CAE1B,IAAIC,EADaJ,EAAiB,sBAAsB,EAAE,IAC5B,OAAO,YAAe,IAEpDG,EAAM,aAAa,QAAS,yBAAyBC,KAAa,CACnE,CACD,CAAC", "names": ["scrollingSection", "scrollingTrack", "calcScroll", "track", "scrollPos"] }