Modal Animations


PHOTO EMBED

Thu Dec 24 2020 05:24:43 GMT+0000 (UTC)

Saved by @Tanvir #js #modal #animation

$('.button').click(function(){

  var buttonId = $(this).attr('id');

  $('#modal-container').removeAttr('class').addClass(buttonId);

  $('body').addClass('modal-active');

})

​

$('#modal-container').click(function(){

  $(this).addClass('out');

  $('body').removeClass('modal-active');

});
content_copyCOPY

https://codepen.io/designcouch/pen/obvKxm