Blending two div's into one

So I’ve seen these trends in the UI forums, where the div’s are blended together. Tho im not sure if it’s even possible to code these together instead of using a SVG mask.

Any suggestions are welcome, thanks.

  • Casper