Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Newbie

About skyfy

  • Rank
  1. My apologies, i missed out wrongly formatted code, below are the two projects https://codesandbox.io/s/scroll-lock-pinned-ogwed?file=/src/pages/index.js https://codesandbox.io/s/confident-satoshi-1id2b most of the references what i found were for single min and max matchmedia examples. regards
  2. Hi Zach, I am struggling a bit with multiple trigger, attached code is what I am trying to achieve, any guidance would be great. const Sticky = () => { const sectionOffset = `${sectionRef.current.offsetTop}`; if (!Killed) { // ScrollTrigger.saveStyles(stickyRef.current) // ScrollTrigger.config({ limitCallbacks: true }) ScrollTrigger.matchMedia({ "(max-width: 480x)": () => { ScrollTrigger.create({ trigger: stickyRef.current, pin: true, start: `top-=${sectionOffset} top`, end: `bottom center-=${sectio
  3. Hello, Is there a solution to have matchmedia () with multiple media queries for scroll trigger, any suggestions would be great. ScrollTrigger.matchMedia({ '(min-width: 768px)': ( ) { } '(min-width: 1024px)': ( ) { } '(min-width: 1200px)': ( ) { } '(min-width: 1600px)': ( ) { } })
  4. Hello again, we have found the solution, primarily when you pin the entire element is placed outside the component. We had background and text colors changing dynamically on scroll, this caused colors to freeze when pinned, for which we used theme provider global context to pass the colors now it works even outside the component. We will try and share minimal working file at the earliest. much appreciate the support cheers
  5. Thank you again for the support, current edition initializes on first scroll, and its skips the pinning. We are setting the theme which has transition duration, if we set the pin on load it freezes the initial colors of the pinnned element,. pinning has to trigger right after transition. completion. can we have an absolute top value , currently we have set the value manually, ? start: 'top-=14% top',
  6. Hello, We finally tracked the problem with our css styling, we are facing a minor issue with scrolltrigger. How to approach delay of scroll trigger on load. below is the code which we are using in Gatsby. we want to set color first and wait for animation to complete and set sticky mode else stickymode inherits orginal colors. any suggestions would be great help. useEffect(() => { if (titleRef.current == null) return if (typeof window !== `undefined`) { gsap.registerPlugin(ScrollTrigger) gsap.core.globals('ScrollTrigger', ScrollTrigger) }
  7. We are expecting the problem is caused by will change parameter in our css attributes of parent container. we will try and recreate the problem and share it .
  8. This Solution works perfectly in safari, firefox and Chrome seems to have a problem with pinning. any suggestions would greatly appreciated. Pin Reparenting worked solved the issues across various browsers.
  9. Thank you, much appreciate the support, some reason its not working in my project, I will try and debug and update the status. Any suggestions or pit falls I should consider if sticky is not working ?
  10. I am trying to lock the text and scroll the image and release the lock on Text to scroll with image from center.
  11. Hi , I am trying to achieve similar effect as the below post in Gatsby, I am new to Gsap much appreciate any support. https://codesandbox.io/s/gatsby-tests-xyij4?fontsize=14&hidenavigation=1&theme=dark
  12. Hello, Sorry for intruding into this thread, I tried similar approach in Gatsby , some reason it's not working . Below is the use effect code I tried to make it work. Any suggestion would be greatly appreciated. cheers -ak useEffect(() => { gsap.registerPlugin(ScrollTrigger) const tl = gsap.timeline({ paused: true, scrollTrigger: { trigger: titleRef.current, pin: true, start: 'top top', scrub: true, markers: true, pinSpacing: false, }, }) }, [])