When hovering, I want to achieve an effect that looks similar to the display below:
To view my website, click here
The relevant code is shown below with the !important attributes removed:
.cta-button-menu, .cta-button-menu::before {
transition:all 0.3s linear;
width: 120px;
height: 50px;
display: inline-flex;
justify-content: center;
align-items: center;
}
.cta-button-menu:hover {
transform:rotateZ(-45deg);
background: #21B6CD;
color: white;
}
.cta-button-menu::before {
content:"Book Now";
background-color:transparent;
position:absolute;
@include main-font($white, 16px, $font-bold);
}
.cta-button-menu:hover::before{
transform: rotateZ(90deg);
background-color:#e72f54;
border:none;
}
I'm having trouble getting the blue button to overlap the red:before button. Can't seem to figure it out.