First I want to admit that my title is confusing and I'm sorry for that. What I want to achieve is the following effect when hovering:
My website is here https://wordpress-493302-3130963.cloudwaysapps.com/
I have successfully accomplished half of what I want to achieve using css transitions, but am unable to see the shadow copy of the button being created as shown in the image above. My CSS is as follows
.cta-button-menu:hover { transform:rotateZ(45deg) !important; background: #21B6CD !important; color: white !important; transition: 1s; }
If this can be implemented using JS or something else that would also be possible, but CSS is preferred.
Does not include the html generated from the mega menu plugin, but this can be done if desired.
I recommend making 2 buttons/one label:
You can use
::before
to apply this effect.