@media (hover: hover) {
#creditcard {
/* set start position */
transform: translateY(110px);
transition: transform 0.1s ease-in-out;
/* set transition for mouse enter & exit */
}
#money {
/* set start position */
transform: translateY(180px);
transition: transform 0.1s ease-in-out;
/* set transition for mouse enter & exit */
}
.btnwallet button:hover #creditcard {
transform: translateY(0px);
transition: transform 0.2s ease-in-out;
/* overide transition for mouse enter */
}
.btnwallet button:hover #money {
transform: translateY(0px);
transition: transform 0.3s ease-in-out;
/* overide transition for mouse enter */
}
}
@keyframes bounce {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-0.25rem);
}
100% {
transform: translateY(0);
}
}
.btnwallet .button:hover .btnwallet .button__text span {
transform: translateY(-0.25rem);
transition: transform .2s ease-in-out;
}
/* styling */
.btnwallet .button {
border: none;
outline: none;
background-color:
purple;
padding: 1rem 90px 1rem 2rem;
position: relative;
border-radius: 8px;
letter-spacing: 0.7px;
background-color:
#5086bd;
color:
#fff;
font-size: 21px;
font-family: "Lato", sans-serif;
cursor: pointer;
box-shadow:
rgba(0, 9, 61, 0.2) 0px 4px 8px 0px;
}
.btnwallet .button:active {
transform: translateY(1px);
}
.btnwallet .button__svg {
position: absolute;
overflow: visible;
bottom: 6px;
right: 0.2rem;
height: 140%;
}