Position Aware Hover Button

I want to create a position hover button. I have a forked version of a pen on codepen. However, the same code when run on JSFiddle, it doesn’t work as intended. When I export the code from Codepen and run it locally, it works as intended however when I embed the snippet in my project code, it doesn’t show the intended result. Please help.

Set a stacking context for the button of the negative z-index on the span will pull the background underneatrh whatever else is in the way.

[class^=btn-] {z-index:1;}

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.