fade fade out effect need for existing javascript code provided

Question!

Is it possible to apply a fade in fade out effect to javascript code please?

At the moment it just pops up an image and disappears with no effect applied. Thank you in advance.



Answers
1
By : adeneo


try the below script

function gradient(id, level)

{

    var box = document.getElementById(id);

    box.style.opacity = level;

    box.style.MozOpacity = level;

    box.style.KhtmlOpacity = level;

    box.style.filter = "alpha(opacity="   level * 100   ")";

    box.style.display="block";

    return;

}



function fadein(id) 

{

    var level = 0;

    while(level 


Since your site is already using jQuery, look into using jQuery fadeIn() and fadeOut() functions.

$('div').fadeOut();
By : Michael


This video can help you solving your question :)
By: admin