U
U
uzi_no_uzi2018-03-16 18:56:13
css
uzi_no_uzi, 2018-03-16 18:56:13

How to make popup disappear smoothly?

Good day
https://codepen.io/anon/pen/yKaYVp
There is such an attempt to make the window fade smoothly, but for some reason it does not work, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Sukhikh, 2018-03-16
@danchiksux

jquery-3.2.1.min.js

$(document).ready(function(){
  $('.jsdonate').click(function() {
    $('.popup').fadeIn();
  })
  $('.closepop').click(function() {
    $('.popup').fadeOut();
  })
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question