Winslow Posted June 3, 2020 Share Posted June 3, 2020 I currently have two full viewport background images of the same light bulb so when you scroll with fixed position it looks as one. However I have a third image that I overlay "making" the light come on. I have spent many hours researching different animations (opacity, which kind of works however I then got into keyframes, Brightness filters, and currently trying to actually add the background image via JS.) I found a logo with kind of "metal" sparkle, flash animation which i tried however it used a lot of perspective and it would take me lot's of time to fine tune the detail for my situation. I would just prefer starting the image without any "light affects scrolling headings up and gradually brighten as you are scrolling or over time. If someone who may have accomplished this or something similar might be willing to give some advice on animating this I would be forever grateful. See the Pen yLeLgxo by B0nef1sh (@B0nef1sh) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted June 3, 2020 Share Posted June 3, 2020 Hey B0nef!sh. How are you imagining the three images to relate? With the two that you have already, it kind of looks like the light comes on when the second one is visible. What more/else/difference are you wanting? Link to comment Share on other sites More sharing options...
Winslow Posted June 3, 2020 Author Share Posted June 3, 2020 Yes this is how I started but was wanting to "fade" it in. Starting out with no visibility to the last img and then getting brighter and lastly maybe adding blend mode screen, scaling, filter . I tried filter brightness, opacity, and like I stated, adding the last image in via JS but cannot figure out how to gradually increase. The current setup just reveals a "turned on" light. Regard Link to comment Share on other sites More sharing options...
ZachSaucier Posted June 3, 2020 Share Posted June 3, 2020 I would use GSAP's ScrollTrigger instead of ScrollMagic (I find it to be more powerful and easier to use; not to mention the smaller file size). I would just fade in the light when scrolled: See the Pen WNrNaVe?editors=0010 by GreenSock (@GreenSock) on CodePen 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