How to turn a background image effect to CSS

63 Views Asked by At

I'm trying to achieve the two effects you see below in CSS, but I can't find how to do them.

Does anyone know the name of this CSS effect or how to achieve something similar with pure CSS?

enter image description here

1

There are 1 best solutions below

0
Noxx1ous On

I would try to achieve this using a simple gradient with the outermost color matching the background color at the 100% marker or fading it out completely toward the end with the same color all the way through. Below is an example of the last bit.

background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(63,94,251,0) 100%);