function cardPressed() { this.classList.add('card-active'); } function cardReleased() { this.classList.remove('card-active'); }