Jump to content
Search Community

Trapti last won the day on September 7 2023

Trapti had the most liked content!

Trapti

Members
  • Posts

    173
  • Joined

  • Last visited

  • Days Won

    2

Trapti last won the day on September 7 2023

Trapti had the most liked content!

6 Followers

Profile Information

  • Location
    Bengaluru
  • Interests
    SVG, animations, CSS, layouts, JavaScript, React

Recent Profile Visitors

3,382 profile views
  1. Sorry I won't be able to help without a demo. Hopefully, someone else can help.
  2. Hi, Check this out. Target the text of each link. In the code given, it was using "text.chars" which applied for both the links. https://codepen.io/tripti1410/pen/XWoLqJX?editors=0010
  3. Hi, Here's a pen. I took out some code for simplicity. This is just autoScroll paused initially and when scroll trigger ".works" and user starts scroll down autoScroll plays. Hope it helps! https://codepen.io/tripti1410/pen/yLGdKXG?editors=0010
  4. Yes, it will still have duration. I have added a console for this example to get the duration. This is using scrub. https://codepen.io/tripti1410/pen/WNLqdEV?editors=0011
  5. "pinSpacing: false" will remove the extra white space just that. Layout will get fix. https://codepen.io/tripti1410/pen/RwEzVqW
  6. Hi, I updated the pen. It should work for window resize as well. I was not taking about grid or flex. There was bunch of position values which I removed. Anyways it was just cleanup.
  7. Hi, If you can provide a demo, it will be better. If the image sequence is animating, then calculate the total duration of that timeline and use that as value. "tl.duration();"
  8. Hi, Here is the updated version of your pen. Hope it helps. I removed a bunch of unnecessary CSS. https://codepen.io/tripti1410/pen/XWoLRNE
  9. Hi, Here's a pen. It might not be the best, but it'll give you an idea. You can refine it further. https://codepen.io/tripti1410/pen/xxMLoGZ?editors=1010 Here is a blog I wrote on the same. Also created the same effect using CSS. https://www.trapti.dev/blog/creating-a-text-rolling-hover-effect-with-css-and-gsap/
  10. gsap.to(header,{ scrollTrigger:{ trigger: ".dark", start: "top 80%", end: "bottom 20", toggleActions: "play reverse play reverse", markers: true, toggleClass: "dark-mode" }, // '-webkit-filter':'invert(100%)', // filter: 'invert(100%)' }); You need to use it this way. It is a Syntax issue.
  11. I am assuming you want to change the color of the header based on the section which is in viewport. As the section changes on scroll, header color should also change. This codepen will be helpful. https://codepen.io/tripti1410/pen/BadYrrY if this is not the problem you are trying to solve, then please describe better what you are trying to achieve with this.
  12. Hi, I checked, and it's working fine for me. You are talking about the pinned horizontal section, right?
×
×
  • Create New...