flim Posted November 8, 2021 Share Posted November 8, 2021 I tried to add an animation for the gradient, not sure the setup is the right way or not, the png background will flash one time while playing the gradient animation. See the Pen zYdjGXj by fredericklim (@fredericklim) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted November 8, 2021 Share Posted November 8, 2021 Hi flim, It's really not a good idea to try and animate a background image like as the browser will reload the images. It might better to use a gradient that is easier to animate, like an SVG. 3 Link to comment Share on other sites More sharing options...
flim Posted November 11, 2021 Author Share Posted November 11, 2021 Thanks for the advise. I can get the gradient fading result with SVG. Here is the setup. See the Pen Badxezb by fredericklim (@fredericklim) on CodePen 2 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