Topic: Dynamically adding rotating cards after page load
Michal Szymanski
staff answered 5 years ago
$('.rotate-btn').on('click', function () {
var cardId = $(this).attr('data-card');
$('#' + cardId).toggleClass('flipped');
});
You should probably wrap this code inside a function which you can later call , destroy and call again.
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No