po kliknięciu Fade Out JQuery
$(document).ready(function(){
$("button").click(function(){
$("p").fadeOut(2500);
});
});
Crowded Cheetah
$(document).ready(function(){
$("button").click(function(){
$("p").fadeOut(2500);
});
});
$(document).ready(function(){
$("button").click(function(){
$("p").fadeOut();
});
});
$(selector).fadeOut(duration)
$(selector).fadeIn(duration)
const target = document.getElementById("target");
target.addEventListener('click', () => target.style.opacity = '0');
// If you want to remove it from the page after the fadeout
target.addEventListener('transitionend', () => target.remove());