Rushita Thummar Posted September 8, 2023 Share Posted September 8, 2023 How can I achieve smoke reveal effect. I already achieve the smoke reveal effect. But my section display some text. and when i hover on text. smoke effect not working. If I use z-index on canvas. then canvas not display. If I not use z-index. then text not display. My requirement is display the text and smoke effect also working on mouse hover. even when i hover on text. please give me solution. index5.html Link to comment Share on other sites More sharing options...
GSAP Helper Posted September 8, 2023 Share Posted September 8, 2023 Hi @Rushita Thummar and welcome to the GreenSock forums! It's pretty tough to troubleshoot without a minimal demo - the issue could be caused by CSS, markup, a third party library, your browser, an external script that's totally unrelated to GSAP, etc. Would you please provide a very simple CodePen or Stackblitz that demonstrates 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. If not, incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, then at least we have a reduced test case which greatly increases your chances of getting a relevant answer. Here's a starter CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen 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. Link to comment Share on other sites More sharing options...
jayesh24 Posted September 14, 2023 Share Posted September 14, 2023 @Rushita Thummar if you have achieved smoke effect and you have to put any text above that then you just need to put right css. you can refer this site it might help you. See the Pen xxmraNp by jayesh24 (@jayesh24) on CodePen 1 Link to comment Share on other sites More sharing options...
Rushita Thummar Posted September 15, 2023 Author Share Posted September 15, 2023 I already used this code. But I want smoke effect should be work when mouse move on the text. in this example I saw this issue. Means when mouse move on the text. smoke effect not work. I have one example site. I want same as reference site. Here is the example site: https://soulda16.club/ 1 Link to comment Share on other sites More sharing options...
Rushita Thummar Posted September 18, 2023 Author Share Posted September 18, 2023 On 9/15/2023 at 3:01 PM, Rushita Thummar said: I already used this code. But I want smoke effect should be work when mouse move on the text. in this example I saw this issue. Means when mouse move on the text. smoke effect not work. I have one example site. I want same as reference site. Here is the example site: https://soulda16.club/ please Give me reply Link to comment Share on other sites More sharing options...
jayesh24 Posted September 18, 2023 Share Posted September 18, 2023 Bro I was aware of that effect i will do some R&D in my free time then might answer you. right now i have no solution Link to comment Share on other sites More sharing options...
akapowl Posted September 18, 2023 Share Posted September 18, 2023 Hello there. A way to get working what you intend is to change the eventListeners from the canvas to the window e.g. - because when it is on the canvas, pointer events will not get registered if your h1 e.g. is sitting on top of your canvas. https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener change the values used in the eventListeners from e.offsetX/e.offsetY to something else like just e.x/e.y https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event Also - if you are going to use this in any form, please make sure to mention the original author of the code. He's the one who put in all the time and work into this - and he chose to distribute this for free. All he's asking with the license model he chose, is for people to mention where they got the code from - but sadly that apparently already is a step too big for people to take, in the vast majority of cases. Good luck with the project. I hope this will help. See the Pen qBLPypG by akapowl (@akapowl) on CodePen Edit: Since this ended up in the Jobs & Freelance forum but got replied to without the intent of that forum (and by now likely solved), I'm going to move it to the general GSAP forum, as this might be of interest for others at some point, and will probably be easier to find there; even though this doesn't make use of GSAP in any way. 3 1 Link to comment Share on other sites More sharing options...
abhisec_tech Posted March 27 Share Posted March 27 On 9/13/2023 at 10:04 PM, jayesh24 said: @Rushita Thummar if you have achieved smoke effect and you have to put any text above that then you just need to put right css. you can refer this site it might help you. Bro i want to change the background color to transparent, but i can't do that, please help me. Link to comment Share on other sites More sharing options...
GSAP Helper Posted March 27 Share Posted March 27 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 dependencies 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. 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. ✅ Link to comment Share on other sites More sharing options...
Rodrigo Posted March 27 Share Posted March 27 Hi @abhisec_tech and welcome to the GSAP Forums! This is not something that can be done just with GSAP, you'll need other tools. The main one is a WebGL rendering engine (PIXI or THREE) and then you can plug GSAP into the mix. Here are a few links: See the Pen zNdqdd by sbrl (@sbrl) on CodePen See the Pen RqeRvY by emoc11 (@emoc11) on CodePen See the Pen gxoQEx by kesuiket (@kesuiket) on CodePen https://threejs-journey.com/lessons/coffee-smoke-shader https://tympanus.net/codrops/2020/01/28/how-to-create-procedural-clouds-using-three-js-sprites/ https://en.threejs-university.com/2021/08/04/creating-a-smoke-effect-in-three-js/ Happy Tweening! 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