
Lots of modern layouts use gradients as their motif. A less common way of having that visual idea recur is with a gradient dropshadow.
Unfortunately, drop shadows can only have a solid color. No gradients allowed here.
So, the wrapper is meant to contain both the button and the make-shift button drop shadow as two separate elements.
I decided to use an image of a mesh gradient rather than create a bespoke gradient (linear, radial etc). Don't worry both will work.
This duplicate will act as the drop shadow element. Make sure it's inside the wrapper. and a sibling of the button.
Feel free to make the button text transparent.
We're trying to mimic the blurry edges of a drop shadow. Layer blur accomplishes this perfectly for us.
Send the blurry layer behind the button layer. Position and blur are your call here. Have fun with it.
Consider depth and the way shadows appear in real life to create something that makes sense.
Unfortunately, drop shadows can only have a solid color. No gradients allowed here.
So, the wrapper is meant to contain both the button and the make-shift button drop shadow as two separate elements. Read on. It'll make sense.
Important: Give the wrapper a position of relative.
The link block is the button.
We could've used Webflow's button element but I prefer the flexibility of a link block (e.g. a link block allows me to add an icon to the button)
Styling the link block to get rid of the default text underline and text color.
We're applying this to the button element (not its wrapper).
I decided to go for a mesh gradient image but we could've just as easily add a regular old linear gradient.
Add padding, style the text to enhance contrast and readability. Round the corners.
Make sure the duplicate is a child of the button wrapper and a sibling of the button.
The button z-index should be greater than that of its duplicate. Z-index handles depth and will in this case allow us to layer the two buttons. We want the make-shift drop shadow to be behind the button.
Also, ensure the z indices should be positive.