Need help with crazy designer requirement (blending opacity colors)
Hey guys,
I have one really interesting feature that I have been trying to implement for quite some time now and I would appreciate the help.
The client and designer want to have these galaxy-like animations that will move around and create fancy effects.
However, I have a big problem implementing this in CSS, due to how semi-transparent colors are mixed.
When you stack two elements with semi-transparent backgrounds, on overlapped areas the color is brightened.
I have tried various approaches like box-shadow, radial-gradient, playing with opacity, blur... nothing suits this design.
Do you have any ideas on how I can tackle this requirement?
Here is the source code for my best attempt: https://codepen.io/Invalid-Solutions/pen/PovpLOP (sizes and rotations are according to design)
Thank you so much for your attention and participation!
8 Replies
You probably want to take a look at mix-blend-mode
I took a look there too, nothing useful :/
as they are larger than the content box's, there surely is some blur added
this is in figma right? you should be able to see what props are used
Yeah, that caught my attention too, but Figma doesn't tell anything about that. There is only size/position/roration. Only on element which is grouping says opacity: 50%
are you able to share the file?
hm, i think it is protected in dev mode, team only
otherwise, don't hasitate to ask the designer if something is not clear. nothing wrong with that
I guess that we will need to have chat in "3 eyes" lol 😄
Thanks for checking bro!
i think you have to use it as an svg image. there are some filters used that are not custom for css only
Thanks for the idea, I will check it out!