Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - on click and addClass (with CSS transition animation)

0 votes
added Dec 5, 2018 in jQuery by LC Marshal Captain (26,090 points)
$('.banderole .trigger-close').on('click', function(){
    $('.banderole .slide-trigger').addClass('trigger-in');



.trigger-in {
    left: -120px;
    transition: all .5s .2s ease-in-out;


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.