themeht's picture
a tapping game that user taps on a character and for teach taps it gives a coin and the coins are stored in the user balance
083db13 verified
raw
history blame contribute delete
564 Bytes
@keyframes coinBounce {
0% {
transform: translateY(0) scale(1);
opacity: 1;
}
100% {
transform: translateY(-100px) scale(0.5);
opacity: 0;
}
}
.coin {
position: absolute;
width: 24px;
height: 24px;
background-color: gold;
border-radius: 50%;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
animation: coinBounce 0.8s forwards;
pointer-events: none;
}
#character {
user-select: none;
-webkit-tap-highlight-color: transparent;
}
#character:active {
transform: scale(0.95);
}