artvera Posted February 9 Share Posted February 9 (edited) [UPDATE] I finally found a solution that almost suits me (thanks to the video below). Now I'm looking for the best way to change the text color when the red background passes behind it. I've updated the CodePen. Hello, I am looking to create the following effect: Automatically (without hover), I would like to give the impression that a red background moves from card to card from right to left, then from left to right. If possible, I would like there to be a masking effect as if the background were sliding under the gap between the cards. Has anyone already implemented a similar effect? Any CodePen? Thank you in advance. See the Pen YzgOOap by artvera_ (@artvera_) on CodePen Edited February 9 by artvera Update with solution Link to comment Share on other sites More sharing options...
Solution GSAP Helper Posted February 9 Solution Share Posted February 9 Without a minimal demo, it's very difficult to troubleshoot; the issue could be caused by CSS, markup, a third party library, a 3rd party script, etc. Would you please provide a very simple CodePen or Stackblitz that illustrates the issue? Please don't include your whole project. Just some colored <div> elements and the GSAP code is best. See if you can recreate the issue with as few dependancies as possible. Start minimal and then incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, at least we have a reduced test case which greatly increases your chances of getting a relevant answer. That said check out this tutorial by our own @Carl, it is a scroll driven effect, but you can probably gleam some knowledge form its setup to use in your own project. See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: Using a framework/library like React, Vue, Next, etc.? CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: React (please read this article!) Next Svelte Sveltekit Vue Nuxt Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. ✅ 2 Link to comment Share on other sites More sharing options...
artvera Posted February 9 Author Share Posted February 9 @GSAP Helper Thank you for the efficiency of your response, apologies for the short demo, I've updated the topic. I will look into that video, it seems like a good lead Thanks again. Link to comment Share on other sites More sharing options...
PeterSanders Posted February 29 Share Posted February 29 On 2/9/2024 at 2:52 PM, GSAP Helper said: Without a minimal demo, it's very difficult to troubleshoot; the issue could be caused by CSS, markup, a third party library, a 3rd party script, etc. Would you please provide a very simple CodePen or Stackblitz that illustrates the issue? Please don't include your whole project. Just some colored <div> elements and the GSAP code is best. See if you can recreate the issue with as few dependancies as possible. Start minimal and then incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, at least we have a reduced test case which greatly increases your chances of getting a relevant answer. That said check out this tutorial by our own @Carl, it is a scroll driven effect, but you can probably gleam some knowledge form its setup to use in your own project. that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: Using a framework/library like React, Vue, Next, etc.? CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: React (please read this article!) Next Svelte Sveltekit Vue Nuxt Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. ✅ Thanks for the tutorial link, I will watch it thoroughly, if I want to know more, I will ask by starting my thread for better conversation. Link to comment Share on other sites More sharing options...
PeterSanders Posted March 12 Share Posted March 12 On 2/9/2024 at 2:52 PM, GSAP Helper said: Without a minimal demo, it's very difficult to troubleshoot; the issue could be caused by CSS, markup, a third party library, a 3rd party script, etc. Would you please provide a very simple CodePen or Stackblitz that illustrates the issue? Please don't include your whole project. Just some colored <div> elements and the GSAP code is best. See if you can recreate the issue with as few dependancies as possible. Start minimal and then incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, at least we have a reduced test case which greatly increases your chances of getting a relevant answer. That said check out this tutorial by our own @Carl, it is a scroll driven effect, but you can probably gleam some knowledge form its setup to use in your own project. that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: Using a framework/library like React, Vue, Next, etc.? CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: React (please read this article!) Next Svelte Sveltekit Vue Nuxt Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. ✅ Thanks for the tutorial link, I will watch it thoroughly, if I want to know more, I will ask by starting my thread for better conversation. I would like to share with you all that, as a student, writing book reports is something I dislike doing. In an attempt to discover a solution, I came across https://academized.com/book-report-writing-service academized. I evaluated them, was legitimate, and am now completely free. If you find yourself among those who dislike writing book reports, you may look at academized. My issue was resolved. Thank you again, for helping me out 1 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