Hey! I’m struggling with a pop up, so if you go to the home page the pop up will show which is great, but I want it to fade in (linear, 200 ms) and I have no clue how to change that in the following code.
Anybody kind enough to help me out, because I have 0 knowlegde of coding… xD
With kind regards,
Tim Sijtema
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.1/js.cookie.min.js" ></script><script>
$(document).ready(function(){
if (!Cookies.get('alert')) { setTimeout(function(){
$('.pop-up-wrapper').css('display','flex');
Cookies.set('alert', true, { expires: 1 });
}, 5000);
}
});
// Documentation at https://github.com/js-cookie/js-cookie
</script>