DEV Community

Discussion on: Smooth CSS Gradient Transitions

Collapse
 
smpnjn profile image
Johnny Simpson • Edited

That is a fair alternative but it doesn't exactly replicate the effect of the colors themselves by RGB values - I think both look good, but the visual effect they achieve is different. Hopefully CSS will eventually support smooth transitions at some point when using gradients natively.

Collapse
 
crongm profile image
Carlos Garcia ★

For visuals I always try to go with a CSS approach. Though if you're aiming for something striking more than functional, the JS approach is much more appealing.

Both are good solutions, and I appreciate both of you taking the time to create the examples and share the code. :)

Thread Thread
 
smpnjn profile image
Johnny Simpson

thank you carlos!