Is that possible to change the background color to gradient background ? #57
Answered
by
matteobruni
medkhalilbk
asked this question in
Q&A
-
Hey contributors! 😎 I'm currently working on a NextJS project, and I'm stuck to customize the React-particles component, I'd like to transform this bit of code:
into a sleek linear gradient background like this:
Any tips or ideas are highly appreciated! 🚀 |
Beta Was this translation helpful? Give feedback.
Answered by
matteobruni
Oct 22, 2023
Replies: 1 comment 1 reply
-
Background gradients are applied to background-image property https://www.w3schools.com/css/css3_gradients.asp Set it to |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
medkhalilbk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background gradients are applied to background-image property https://www.w3schools.com/css/css3_gradients.asp
Set it to
background.image
property instead ofbackground.color
and it will workSample here
https://github.com/tsparticles/presets/blob/7979797175fad0a31156fce0be83063dc31a33ef/presets/fire/src/options.ts#L38