Bootstrap flip card with css3 transform

后端 未结 1 1016
广开言路
广开言路 2021-01-05 18:50

I want to create a bootstrap flip card by using CSS3 transform. I did started from this working and basic example

However I wanted to modify it to have a fixed heigh

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 19:43

    I think that it is much simpler using directly the CSS class selector

    $('.flipControl').on('click', function(){
        $(this).closest('.card').toggleClass('flipped');
    
    });
    

    demo

    0 讨论(0)
提交回复
热议问题