I'm doing a small script which the element should disappear for only 2 seconds and then return to appear alone, I leave the link here Fiddle
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('img').click(function() {
$(this).fadeOut();
setTimeout(function() {
$(this).fadeIn();
}, 1000);
//$(this).toggle();
});
});
</script>
im trying using fade and set time but it not works
fadeOut
all images thenfadeIn
the image you clicked?