test 2 - A Destination for Ideation | Asheville Ideas Fest
Copyright 2024. All Rights Reserved.   ||  Privacy policy.  ||  Designed by Kudzu Brands.
chevron-down gsap.registerPlugin(ScrollTrigger); let postsSection = document.querySelector('#featured-posts') console.log(postsSection.offsetHeight) // make the boxes random colors gsap.set(".box", {backgroundColor: "rgb(random(0,190), random(0,190), random(0,190)"}); // apply parallax effect to any element with a data-speed attribute gsap.to("[data-speed]", { y: (i, el) => (-1 * parseFloat(el.getAttribute("data-speed"))) * (postsSection.offsetHeight / 3), ease: "none", scrollTrigger: { trigger:postsSection, invalidateOnRefresh: true, scrub: 0, markers: true, start: 'center bottom' } });