I need to set the CSS property in this script to go along with the animation, but I cannot do it right.
I need a div with the identifier "container" to set the CSS property when the click function is activated. I need to set overflow: hidden to #container .
Here is my script.
$(function() { $(".folderContent").hide(); $(".signin").click(function(event) { var folderContent = $(".folderContent"); var folderContentShown = folderContent.css("display") != "none"; var clickedFolder = $(this); clickedFolder.parent("#signincontainer").after(folderContent); $("body").find("#container").not(clickedFolder).each(function() { if (!folderContentShown) $(this).not("#signincontainer").animate( { opacity: 0.50 }, "slow"); else $(this).animate({ opacity: 1.00 }, "slow"); });
JD Audi
source share