Are you first timer at lazacode.org? 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
17 views
added Dec 5 in jQuery by LC Marshal Lieutenant (14,830 points)
$('.banderole .trigger-close').on('click', function(){
    $('.banderole .slide-trigger').addClass('trigger-in');
});

 

CSS

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

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...