To help understand the solution, I just re-format it:
.paymentButtonsWrapper #AddToCart::before {
position: absolute;
font-family: ‘fontello’;
width: 100%;
height: 100%;
left: 0;
right: 0;
top: 12px;
content: ‘\e802’;
opacity: 0;
transform: scale(0);
transition: all 0.9s;
}
.paymentButtonsWrapper #AddToCart {
position: relative;
}
.paymentButtonsWrapper #AddToCart:hover::before {
opacity: 1;
transform: scale(1);
}
.paymentButtonsWrapper #AddToCart.add-to-cart–secondary:not(.disabled):hover span {
display: none;
}