agsymonds Posted February 5 Share Posted February 5 (edited) Hi. I have created a pen using ScrollTrigger & SplitText to increase opacity on text as you scroll down the page. The pen works fine on CodePen but on my live site the chars revels runs automatically with a stagger and is not connected to scrollTrigger. I get no errors on the live site, so assume it must be my code. Is the GSAP code correct or is there something obviously wrong with what I am doing? Thanks for any help. I have combined JS on my site and it has caused this issue. The code seems to work, but any improvement is appreciated. See the Pen eYPKgwG by agsymonds (@agsymonds) on CodePen Edited February 5 by agsymonds Resolved Link to comment Share on other sites More sharing options...
GSAP Helper Posted February 5 Share Posted February 5 Without a minimal demo that clearly illustrates the problem, it's very difficult to troubleshoot; the issue could be caused by CSS, markup, a third party library, a 3rd party script, etc. At the very least, please provide a URL where we can see the problem. We generally can't troubleshoot live sites, but it's better than nothing. Perhaps the console log will provide some clues. Link to comment Share on other sites More sharing options...
Solution agsymonds Posted February 5 Author Solution Share Posted February 5 Apologies, please can I mark this as resolved. I have combined JS on my site and it has caused this issue. The code seems to work, but any improvement is appreciated. Link to comment Share on other sites More sharing options...
GreenSock Posted February 5 Share Posted February 5 I don't notice any obvious problems, but this looked slightly odd: start: "top 30%", end: "bottom bottom", That'll work fine as long as the trigger element is MORE than 70% as tall as the viewport, otherwise the end will be BEFORE the start. Happy tweening, and thanks for being a Club GSAP member! 💚 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now