$('.flip-button').each(function() {
$(this).click(function() {
$(this).closest('.flip-card-inners').toggleClass('flip-card-active')
})
})
I wasn’t able to translate this in vanilla js because I encountered several problems with get element by class
2
Answers