@widelab-nc/widelab 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css CHANGED
@@ -0,0 +1,2 @@
1
+ .splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;contain:strict;display:inline-block;height:20px;inset:0;margin:auto;position:absolute;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:rgba(0,0,0,0)}.splide__slide:focus{outline:0}@supports (outline-offset: -3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast: none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports (outline-offset: -3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast: none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;inset:0 .5em 0 auto;padding:1em 0}html.lenis{height:auto}.hero_headline.is-cta{text-wrap:balance}#homeHeroHeading{pointer-events:none}.hero_headline-span{pointer-events:auto;z-index:-1}.hero-line-mask:first-of-type{z-index:2}.hero_headline-span{aspect-ratio:65/23}.clients_collection_item_wrapper{aspect-ratio:1/1}.start_diagram_step_path-mask{aspect-ratio:2/1}.splide__track{overflow:visible}.splide__pagination__page.reviews-page,.splide__pagination__page.facts-page{height:.625rem;width:.625rem;background:#b2b2b2;opacity:.5;margin:.25rem}.splide__pagination__page.reviews-page.is-active,.splide__pagination__page.facts-page.is-active{height:.625rem;width:.625rem;background:#000;opacity:1;transform:none}.footer_logo-svg{aspect-ratio:1286/185}address{font-style:normal}.bottom-wrapper_footer-spacer,.whats-next_links_item_image-wrapper,.reel-modal_player{pointer-events:none}.skills_item_hover-track.is-design{white-space:nowrap;will-change:transform;animation:marquee-horizontal 12s linear infinite}.skills_item_hover-track.is-branding,.skills_item_hover-track.is-nocode{white-space:nowrap;will-change:transform;animation:marquee-horizontal 5s linear infinite}@keyframes marquee-horizontal{0%{transform:translate(0)}to{transform:translate(-50%)}}.splide__pagination.facts-pagination{padding:0;align-items:start;justify-content:left}.hero-line-mask,.stats-line-mask,.facts-line-mask,.cs-line-mask{clip-path:polygon(0 0,100% 0,100% 110%,0 110%)}@media only screen and (min-width: 992px){#csSingleFooter{position:static}#csItemTransformWrapper,#csItemNotTransformWrapper{padding-left:2.5rem;padding-right:2.5rem}.portfolio_item_image-wrapper.is-portrait{aspect-ratio:31/32}.portfolio_item_image-wrapper{aspect-ratio:4/3}.portfolio_wrapper.is-2-col>.portfolio_item:first-child .portfolio_item_content,.portfolio_item.is-1-left .portfolio_item_content{padding-left:2.5rem}.splide__pagination.reviews-pagination{bottom:-3.625rem}.splide__pagination.facts-pagination{bottom:2.25rem;left:0;right:0}#stickyNavbar{padding:1rem 2.5rem}.button_small .link,.portfolio_item .is-p-l.is-link,.cookies-button{position:relative;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:100% .08em;transition:background-size .2s cubic-bezier(.65,0,.35,1)}.button_small:hover .link,.button_small:focus .link,.portfolio_item:hover .is-p-l.is-link,.portfolio_item:active .is-p-l.is-link,.cookies-button:hover,.cookies-button:active{background-size:0% .08em}.button_small .button_small_icon_circle,.cta_link .cta_link_icon-wrapper{position:relative}.button_small .button_small_icon_circle:after,.cta_link .cta_link_icon-wrapper:after{background-color:inherit;border-radius:50%;content:"";position:absolute;inset:0;z-index:-1;transition:.3s cubic-bezier(.83,0,.17,1)}.button_small:hover .button_small_icon_circle:after,.cta_link:hover .cta_link_icon-wrapper:after{scale:1.2}.navbar_menu_link,.footer_menu_link,.is-link,.cta_link .is-h4{position:relative;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:0% .08em;transition:background-size .2s cubic-bezier(.65,0,.35,1)}.navbar_menu_link:hover,.navbar_menu_link:focus,.footer_menu_link:hover,.footer_menu_link:focus,.is-link:hover,.is-link_link:focus,.cta_link:hover .is-h4,.cta_link:focus .is-h4{background-size:100% .08em}}@media only screen and (max-width: 1180px) and (min-width: 992px){.stats-content_wrapper{padding-right:4vw}}@media only screen and (max-width: 1280px) and (min-width: 992px){.section.is-cs-2col{padding-left:2.5rem;padding-right:2.5rem}}@media only screen and (max-width: 991px){.navbar .button_small .button_small_icon_circle{display:none}#csItemTransformWrapper{padding-left:1.75rem;padding-right:1.75rem}.portfolio_item_image-wrapper{aspect-ratio:6/5}.button_small .link,.portfolio_item .is-p-l.is-link,.cta_link.is-mobile-nav .is-p-l,.cookies-button{position:relative;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:100% .08em}.splide__pagination.reviews-pagination{bottom:-3.5rem}.splide__pagination.facts-pagination{top:15.25rem;left:0;right:0}.splide__list.team_collection_list{overflow:visible}}@media only screen and (max-width: 767px){#csItemTransformWrapper{padding-left:1.375rem;padding-right:1.375rem}.reel_prev_mask{aspect-ratio:19/22}.splide__pagination.facts-pagination{top:13.5rem;left:0;right:0}.portfolio_item_image-wrapper{aspect-ratio:95/79}.splide__pagination.reviews-pagination{bottom:-3rem}}.background-video{height:100%;position:relative;overflow:hidden}.background-video>video{width:100%;height:100%;object-fit:cover;z-index:-100;background-position:50%;background-size:cover;margin:auto;position:absolute;inset:-100%}.background-video>video::-webkit-media-controls-start-playback-button{-webkit-appearance:none;display:none!important}.background-video--control{background-color:#0000;padding:0;position:absolute;bottom:1em;right:1em}.background-video--control>[hidden]{display:none!important}
2
+ /*# sourceMappingURL=style.css.map */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
3
+ "sources": ["../src/splidejs.scss", "../src/style.scss"],
4
+ "sourcesContent": [".splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;-ms-flex-pack:center;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:rgba(0,0,0,0)}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}", "@import './splidejs';\n\n/* Global styles */\nhtml.lenis {\n height: auto;\n}\n\n.hero_headline.is-cta {\n text-wrap: balance;\n}\n\n/* Home hero span animation */\n#homeHeroHeading {\n pointer-events: none;\n}\n.hero_headline-span {\n pointer-events: auto;\n z-index: -1;\n}\n.hero-line-mask:first-of-type {\n z-index: 2;\n}\n\n/* Ratio for hero span video */\n.hero_headline-span {\n aspect-ratio: 65 / 23;\n}\n\n/* Client item ratio */\n.clients_collection_item_wrapper {\n aspect-ratio: 1 / 1;\n}\n\n/* Ratio for diagram path mask */\n.start_diagram_step_path-mask {\n aspect-ratio: 2 / 1;\n}\n\n/* Splide track overflow */\n.splide__track {\n overflow: visible;\n}\n\n/* Splide default pagination */\n.splide__pagination__page.reviews-page,\n.splide__pagination__page.facts-page {\n height: 0.625rem;\n width: 0.625rem;\n background: #b2b2b2;\n opacity: 0.5;\n margin: 0.25rem;\n}\n\n/* Splide active pagination */\n.splide__pagination__page.reviews-page.is-active,\n.splide__pagination__page.facts-page.is-active {\n height: 0.625rem;\n width: 0.625rem;\n background: #000;\n opacity: 1;\n transform: none;\n}\n\n/* Footer logo ratio */\n.footer_logo-svg {\n aspect-ratio: 1286 / 185;\n}\n\n/* Address remove style */\naddress {\n font-style: normal;\n}\n\n/* Footer spacer styles */\n.bottom-wrapper_footer-spacer,\n.whats-next_links_item_image-wrapper,\n.reel-modal_player {\n pointer-events: none;\n}\n\n/* Skills hover marquee */\n.skills_item_hover-track.is-design {\n white-space: nowrap;\n will-change: transform;\n animation: marquee-horizontal 12s linear infinite;\n}\n\n.skills_item_hover-track.is-branding {\n white-space: nowrap;\n will-change: transform;\n animation: marquee-horizontal 5s linear infinite;\n}\n\n.skills_item_hover-track.is-nocode {\n white-space: nowrap;\n will-change: transform;\n animation: marquee-horizontal 5s linear infinite;\n}\n\n@keyframes marquee-horizontal {\n from {\n transform: translateX(0);\n }\n\n to {\n transform: translateX(-50%);\n }\n}\n\n/* Facts slider pagination position */\n.splide__pagination.facts-pagination {\n padding: 0;\n align-items: start;\n justify-content: left;\n}\n\n/* Cliping mask for hero headline */\n.hero-line-mask,\n.stats-line-mask,\n.facts-line-mask,\n.cs-line-mask {\n clip-path: polygon(0 0, 100% 0, 100% 110%, 0 110%);\n}\n\n/* Styles for desktop */\n@media only screen and (min-width: 992px) {\n /* Special styles for CS single footer */\n #csSingleFooter {\n position: static;\n }\n\n /* Padding for first portfolio item on list */\n #csItemTransformWrapper,\n #csItemNotTransformWrapper {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n }\n\n /* CS thumbnails ratio */\n .portfolio_item_image-wrapper.is-portrait {\n aspect-ratio: 31/32;\n }\n .portfolio_item_image-wrapper {\n aspect-ratio: 4/3;\n }\n\n /* Padding for CS elements portfolio elements */\n .portfolio_wrapper.is-2-col > .portfolio_item:first-child .portfolio_item_content,\n .portfolio_item.is-1-left .portfolio_item_content {\n padding-left: 2.5rem;\n }\n\n /* Reviews slider pagination position */\n .splide__pagination.reviews-pagination {\n bottom: -3.625rem;\n }\n\n /* Facts slider pagination position */\n .splide__pagination.facts-pagination {\n bottom: 2.25rem;\n left: 0;\n right: 0;\n }\n\n /* Sticky navbar padding */\n #stickyNavbar {\n padding: 1rem 2.5rem;\n }\n\n /* Underline hover */\n .button_small .link,\n .portfolio_item .is-p-l.is-link,\n .cookies-button {\n position: relative;\n text-decoration: none;\n background-image: linear-gradient(currentColor, currentColor);\n background-position: 0 100%;\n background-repeat: no-repeat;\n background-size: 100% 0.08em;\n transition: background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1);\n }\n\n .button_small:hover .link,\n .button_small:focus .link,\n .portfolio_item:hover .is-p-l.is-link,\n .portfolio_item:active .is-p-l.is-link,\n .cookies-button:hover,\n .cookies-button:active {\n background-size: 0% 0.08em;\n }\n\n /* Button small circle hover */\n .button_small .button_small_icon_circle,\n .cta_link .cta_link_icon-wrapper {\n position: relative;\n }\n\n .button_small .button_small_icon_circle::after,\n .cta_link .cta_link_icon-wrapper::after {\n background-color: inherit;\n border-radius: 50%;\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n transition: 0.3s cubic-bezier(0.83, 0, 0.17, 1);\n }\n\n .button_small:hover .button_small_icon_circle::after,\n .cta_link:hover .cta_link_icon-wrapper::after {\n scale: 1.2;\n }\n\n /* Navbar links hover undeline */\n .navbar_menu_link,\n .footer_menu_link,\n .is-link,\n .cta_link .is-h4 {\n position: relative;\n text-decoration: none;\n background-image: linear-gradient(currentColor, currentColor);\n background-position: 0 100%;\n background-repeat: no-repeat;\n background-size: 0% 0.08em;\n transition: background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1);\n }\n .navbar_menu_link:hover,\n .navbar_menu_link:focus,\n .footer_menu_link:hover,\n .footer_menu_link:focus,\n .is-link:hover,\n .is-link_link:focus,\n .cta_link:hover .is-h4,\n .cta_link:focus .is-h4 {\n background-size: 100% 0.08em;\n }\n}\n\n/* Styles for desktop < 1180 */\n@media only screen and (max-width: 1180px) and (min-width: 992px) {\n .stats-content_wrapper {\n padding-right: 4vw;\n }\n}\n\n@media only screen and (max-width: 1280px) and (min-width: 992px) {\n .section.is-cs-2col {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n }\n}\n\n/* Styles for tablet and smaller */\n@media only screen and (max-width: 991px) {\n /* Hide circle in navbars' small button */\n .navbar .button_small .button_small_icon_circle {\n display: none;\n }\n\n /* Padding for first portfolio item on list */\n #csItemTransformWrapper {\n padding-left: 1.75rem;\n padding-right: 1.75rem;\n }\n\n /* CS thumbnails ratio */\n .portfolio_item_image-wrapper {\n aspect-ratio: 6/5;\n }\n\n /* Underline for some links */\n .button_small .link,\n .portfolio_item .is-p-l.is-link,\n .cta_link.is-mobile-nav .is-p-l,\n .cookies-button {\n position: relative;\n text-decoration: none;\n background-image: linear-gradient(currentColor, currentColor);\n background-position: 0 100%;\n background-repeat: no-repeat;\n background-size: 100% 0.08em;\n }\n\n /* Reviews slider pagination position */\n .splide__pagination.reviews-pagination {\n bottom: -3.5rem;\n }\n\n /* Facts slider pagination position */\n .splide__pagination.facts-pagination {\n top: 15.25rem;\n left: 0;\n right: 0;\n }\n\n /* Splide list overflow change */\n .splide__list.team_collection_list {\n overflow: visible;\n }\n}\n\n/* Styles for landscape and smaller */\n@media only screen and (max-width: 767px) {\n /* Padding for first portfolio item on list */\n #csItemTransformWrapper {\n padding-left: 1.375rem;\n padding-right: 1.375rem;\n }\n\n /* Reel video ratio */\n .reel_prev_mask {\n aspect-ratio: 19 / 22;\n }\n\n /* Facts slider pagination position */\n .splide__pagination.facts-pagination {\n top: 13.5rem;\n left: 0;\n right: 0;\n }\n\n /* CS thumbnails ratio */\n .portfolio_item_image-wrapper {\n aspect-ratio: 95 / 79;\n }\n\n /* Reviews slider pagination position */\n .splide__pagination.reviews-pagination {\n bottom: -3rem;\n }\n}\n\n.background-video {\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n\n.background-video > video {\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: -100;\n background-position: 50%;\n background-size: cover;\n margin: auto;\n position: absolute;\n top: -100%;\n bottom: -100%;\n left: -100%;\n right: -100%;\n}\n\n.background-video > video::-webkit-media-controls-start-playback-button {\n -webkit-appearance: none;\n display: none !important;\n}\n\n.background-video--control {\n background-color: rgba(0, 0, 0, 0);\n padding: 0;\n position: absolute;\n bottom: 1em;\n right: 1em;\n}\n\n.background-video--control > [hidden] {\n display: none !important;\n}"],
5
+ "mappings": "AAAA,CAAA,kBAAmB,WAAA,WAAsB,SAAA,SAAkB,CAAA,aAAc,oBAAA,OAA2B,QAAA,YAAoB,QAAA,KAAa,OAAA,KAArI,OAAiJ,YAAjJ,QAAoK,YAAoB,CAAA,MAAA,CAAA,cAAA,KAAA,CAAA,WAAA,CAA7H,aAAkL,Q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BAQA,CAAA,CAAA,QACE,QAAA",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widelab-nc/widelab",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Widelab starter template based on Finsweet template + add-ons.",
5
5
  "homepage": "https://widelab.co",
6
6
  "license": "ISC",
@@ -19,6 +19,18 @@
19
19
  "files": [
20
20
  "dist"
21
21
  ],
22
+ "scripts": {
23
+ "dev": "cross-env NODE_ENV=development node ./bin/build.js",
24
+ "build": "cross-env NODE_ENV=production node ./bin/build.js",
25
+ "lint": "eslint --ignore-path .gitignore ./src && prettier --check ./src",
26
+ "lint:fix": "eslint --ignore-path .gitignore ./src --fix",
27
+ "check": "tsc --noEmit",
28
+ "format": "prettier --write ./src",
29
+ "test": "pnpm playwright test",
30
+ "test:headed": "pnpm playwright test --headed",
31
+ "release": "changeset publish",
32
+ "update": "pnpm update -i -L -r"
33
+ },
22
34
  "devDependencies": {
23
35
  "@changesets/changelog-git": "^0.1.14",
24
36
  "@changesets/cli": "^2.26.0",
@@ -38,22 +50,7 @@
38
50
  "typescript": "^4.9.5"
39
51
  },
40
52
  "dependencies": {
41
- "@splidejs/splide": "^4.1.4",
42
- "@studio-freight/lenis": "^1.0.25",
43
53
  "alpinejs": "^3.13.0",
44
- "gsap": "npm:@gsap/business@^3.12.2",
45
- "lozad": "^1.16.0"
46
- },
47
- "scripts": {
48
- "dev": "cross-env NODE_ENV=development node ./bin/build.js",
49
- "build": "cross-env NODE_ENV=production node ./bin/build.js",
50
- "lint": "eslint --ignore-path .gitignore ./src && prettier --check ./src",
51
- "lint:fix": "eslint --ignore-path .gitignore ./src --fix",
52
- "check": "tsc --noEmit",
53
- "format": "prettier --write ./src",
54
- "test": "pnpm playwright test",
55
- "test:headed": "pnpm playwright test --headed",
56
- "release": "changeset publish",
57
- "update": "pnpm update -i -L -r"
54
+ "gsap": "^3.12.2"
58
55
  }
59
- }
56
+ }
package/src/index.js CHANGED
@@ -1,25 +1,25 @@
1
- //import {initAlpine} from "./init";
1
+ import {initAlpine} from "./init";
2
2
  import Lenis from '@studio-freight/lenis';
3
- import { gsap } from 'gsap';
4
- import { CustomEase } from 'gsap/CustomEase';
5
- import { ScrollToPlugin } from 'gsap/ScrollToPlugin';
6
- import { ScrollTrigger } from 'gsap/ScrollTrigger';
7
- import { SplitText } from 'gsap/SplitText';
8
- import lozad from 'lozad';
9
- import Splide from '@splidejs/splide';
10
- import { DrawSVGPlugin } from 'gsap/DrawSVGPlugin';
3
+ import gsap from 'gsap';
4
+ import { ScrollTrigger } from "gsap/ScrollTrigger";
5
+ import { CustomEase } from "gsap/CustomEase";
11
6
 
12
- // Register GSAP plugins
13
- gsap.registerPlugin(DrawSVGPlugin, ScrollTrigger, SplitText, CustomEase, ScrollToPlugin);
7
+ // GSAP plugins register and custom easing
8
+ gsap.registerPlugin(ScrollTrigger, CustomEase);
9
+ function customGsapEasing() {
10
+ CustomEase.create('loader', '0.83, 0, 0.17, 1');
11
+ CustomEase.create('loader2', '0.77, 0, 0.175, 1');
12
+ }
13
+
14
+ // Functions definitions
14
15
 
15
- // Define smooth scroll
16
+
17
+ //Smooth scroll init
16
18
  const lenis = new Lenis({
17
19
  duration: 1.2,
18
- easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t))
20
+ easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
19
21
  });
20
-
21
- // Lenis scroll start function
22
- function lenisScroll() {
22
+ function lenisScroll() {
23
23
  function raf(time) {
24
24
  lenis.raf(time);
25
25
  requestAnimationFrame(raf);
@@ -27,20 +27,26 @@ function lenisScroll() {
27
27
  requestAnimationFrame(raf);
28
28
  }
29
29
 
30
- // Lazy load library init
31
- function lazyLoad() {
32
- const observer = lozad('img, video:not(#fullReel)', {
33
- loaded: function (el) {
34
- // Custom code to run when an image or video is loaded
35
- },
36
- });
37
- observer.observe();
38
- }
39
-
40
- // Custom ease for GSAP
41
- function customGsapEasing(){
42
- CustomEase.create('loader', '0.83, 0, 0.17, 1');
43
- CustomEase.create('loader2', '0.77, 0, 0.175, 1');
30
+ // Lazy load videos
31
+ function lazyLoadVideos() {
32
+ let lazyVideos = [].slice.call(document.querySelectorAll("video.lazyload"));
33
+ if ("IntersectionObserver" in window) {
34
+ let lazyVideoObserver = new IntersectionObserver(function(entries, observer) {
35
+ entries.forEach(function(video) {
36
+ if (video.isIntersecting) {
37
+ for (let source of video.target.children) {
38
+ source.setAttribute("src", source.getAttribute("data-src"));
39
+ }
40
+ video.target.load();
41
+ video.target.play();
42
+ lazyVideoObserver.unobserve(video.target);
43
+ }
44
+ });
45
+ });
46
+ lazyVideos.forEach(function(lazyVideo) {
47
+ lazyVideoObserver.observe(lazyVideo);
48
+ });
49
+ }
44
50
  }
45
51
 
46
52
  // Reload page on browser back action
@@ -52,195 +58,45 @@ function reloadOnBack() {
52
58
  });
53
59
  }
54
60
 
55
- // Page load animation
56
- const loaderAnimationIn = gsap.timeline({});
57
- loaderAnimationIn.add(function() {
58
- history.scrollRestoration = 'manual';
59
- gsap.to(window, { duration: 0.05, scrollTo: 0 });
60
- lenis.scrollTo(0);
61
- });
62
- loaderAnimationIn.add(function() {
63
- lenis.stop();
64
- }, '>');
65
- loaderAnimationIn.to(
66
- '.loader_ract',
67
- {
68
- delay: 0.2,
69
- duration: 0.8,
70
- width: 0,
71
- ease: 'loader2',
72
- },
73
- '>'
74
- );
75
- loaderAnimationIn.add(function() {
76
- lenis.start();
77
- }, '>');
78
- loaderAnimationIn.to('.loader_wrapper', { display: 'none', duration: 0.1 }, '>');
79
-
80
- // Page transition animation
81
- function transitionLinksRule() {
82
- const transitionLinks = document.querySelectorAll(
83
- 'a:not([href^="#"]):not([href^="javascript:"]):not([href=""]):not([href^="mailto:"]):not([href^="tel:"])'
84
- );
85
- transitionLinks.forEach((link) => {
86
- if (link.getAttribute('target') !== '_blank') {
87
- link.addEventListener('click', (e) => {
88
- e.preventDefault();
89
-
90
- const loaderAnimationOut = gsap.timeline({
91
- onComplete: () => {
92
- window.location.href = link.href;
93
- },
94
- });
95
- loaderAnimationOut.to('.unloader_wrapper', { display: 'flex', duration: 0.05 });
96
- loaderAnimationOut.from('.unloader_ract', {
97
- duration: 0.4,
98
- width: '0%',
99
- ease: 'loader2',
100
- }),
101
- '>';
102
- // play the timeline
103
- loaderAnimationOut.play();
104
- });
105
- }
106
- });
107
- }
108
-
109
- // Reset loader display on screen resize
110
- function onScreenResize() {
111
- window.addEventListener('resize', function () {
112
- setTimeout(function () {
113
- gsap.set('.loader_wrapper', { display: 'none' });
114
- }, 50);
115
- });
116
- }
117
-
118
- // Hero move to reveal footer
119
- function revealFooter() {
120
- gsap.to('#heroSection', {
121
- scrollTrigger: {
122
- trigger: '#bottomWrapper',
123
- start: 'top bottom',
124
- toggleActions: 'restart none none reverse',
125
- },
126
- y: '-100%',
127
- });
61
+ // Scroll disable
62
+ function disableScrollMenu() {
63
+ const script = document.createElement('script');
64
+ script.src =
65
+ 'https://cdn.jsdelivr.net/npm/@finsweet/attributes-scrolldisable@1/scrolldisable.js';
66
+ script.defer = true;
67
+ document.head.appendChild(script);
128
68
  }
129
69
 
130
- // Custom cursor on mousedown and mouse up
131
- function customCursorOnClick() {
132
- const cursorElements = document.querySelectorAll('[wide="customCursor"]');
133
- const customCursor = document.querySelector('.custom_cursor');
134
- cursorElements.forEach((element) => {
135
- element.addEventListener('mousedown', function () {
136
- customCursor.style.transform = 'scale3d(0.8, 0.8, 1)';
137
- });
138
- element.addEventListener('mouseup', function () {
139
- customCursor.style.transform = 'scale3d(1, 1, 1)';
140
- });
141
- });
70
+ // Place video inside the text
71
+ window.videoInsideText = function(e) {
72
+ const headlineContent = e.querySelector('[class*="copy-this"]');
73
+ const headlineSpan = e.querySelector('[class*="headline-span"]');
74
+ headlineSpan.appendChild(headlineContent);
142
75
  }
143
76
 
144
- // Custom cursor copy change on hover
145
- function customCursorChangeCopy() {
146
- document.addEventListener('DOMContentLoaded', function () {
147
- const customCursorElements = document.querySelectorAll('[wideCursorText]');
148
- customCursorElements.forEach(function (element) {
149
- element.addEventListener('mouseenter', () => {
150
- const wideCursorTextValue = element.getAttribute('wideCursorText');
151
- const customCursorTextElement = document.querySelector('.custom_cursor_text');
152
- customCursorTextElement.innerHTML = wideCursorTextValue;
153
- });
77
+ // Span video mask animation
78
+ window.spanVideoMaskAnimation = function(e) {
79
+ gsap.to(e, {
80
+ scrollTrigger: { trigger: e, start: 'bottom bottom-=5%' },
81
+ width: 0,
82
+ ease: 'loader2',
83
+ duration: 0.6,
154
84
  });
155
- });
156
- }
157
-
158
- // Header animations
159
- const showHideHeader = gsap.from('.navbar', {
160
- y: '-100%',
161
- paused: true,
162
- duration: 0.2,
163
- ease: 'loader2',
164
- })
165
- .progress(1);
166
-
167
- // Header animation on scroll
168
- function headeronScroll() {
169
- ScrollTrigger.create({
170
- start: 'top top',
171
- endTrigger: '.bottom-wrapper',
172
- end: 'bottom top+=100px',
173
- onUpdate: (self) => {
174
- self.direction === -1 ? showHideHeader.play() : showHideHeader.reverse();
175
- },
176
- });
177
- }
178
-
179
- // Page load animation
180
- const homeLoadAnimation = gsap.timeline({}),
181
- homeHeroHeading = new SplitText('#homeHeroHeading', {
182
- type: 'lines',
183
- linesClass: 'hero-line',
184
- }),
185
- homeHeroHeadingMask = new SplitText('#homeHeroHeading', {
186
- type: 'lines',
187
- linesClass: 'hero-line-mask',
188
- });
189
- homeLoadAnimation.add(loaderAnimationIn.play());
190
- homeLoadAnimation.from('.navbar', {
191
- opacity: 0,
192
- duration: 0.6,
193
- ease: 'loader2',
194
- }),
195
- '>-2';
196
- homeLoadAnimation.from(
197
- '.hero-line',
198
- {
199
- duration: 1.2,
200
- y: '100%',
201
- stagger: 0.2,
202
- ease: 'loader2',
203
- },
204
- '>-0.5'
205
- );
206
- homeLoadAnimation.to(
207
- '.hero_headline_ract-mask',
208
- {
209
- width: '0%',
210
- duration: 0.6,
211
- ease: 'loader2',
212
- },
213
- '>-0.6'
214
- );
215
- homeLoadAnimation.from(
216
- '#heroSubtitle',
217
- {
218
- opacity: 0,
219
- duration: 1,
220
- ease: 'loader2',
221
- },
222
- '>-0.4'
223
- );
224
-
225
-
226
-
227
-
228
-
229
-
85
+ }
230
86
 
231
87
 
232
88
  // !!!!!!!!! Keep this Alpine init at the end !!!!!!!!!
233
89
  window.Webflow ||= [];
234
90
  window.Webflow.push(() => {
235
- //initAlpine();
91
+ console.log('The new code source is loaded!');
92
+ initAlpine();
93
+ lazyLoadVideos();
236
94
  lenisScroll();
95
+ lenis.stop();
96
+ lenis.start();
237
97
  customGsapEasing();
238
- lazyLoad();
239
98
  reloadOnBack();
240
- transitionLinksRule();
241
- onScreenResize();
242
- revealFooter();
243
- customCursorOnClick();
244
- customCursorChangeCopy();
245
- headeronScroll();
99
+ if (window.innerWidth < 992) {
100
+ disableScrollMenu();
101
+ }
246
102
  });