If you're aiming to achieve the desired effect for the feathers and top bar, I've created a functional example here that might be helpful.
It's important to note that applying a CSS class to an element cannot be controlled by simply setting the display
property to none
.
By using display: none
in a CSS class, you are essentially indicating that any HTML element with that class will not be visible on the page.
Instead, consider adding or removing the necessary classes from your target elements based on specific actions:
$("#home_top").mouseenter(function () {
$("#topBar").removeClass("sGray");
$("#topBar").addClass("sColor");
$("#featherOne, #featherTwo").removeClass("fGray");
$("#featherOne, #featherTwo").addClass("fColor");
});
$("#home_top").mouseleave(function(){
$("#topBar").removeClass("sColor");
$("#topBar").addClass("sGray");
$("#featherOne, #featherTwo").removeClass("fColor");
$("#featherOne, #featherTwo").addClass("fGray");
});
To introduce a delay as per your requirements, ensure that your CSS class includes the necessary transition for the intended property:
-webkit-transition: filter 750ms ease-in;
-moz-transition: filter 750ms ease-in;
-ms-transition: filter 750ms ease-in;
-o-transition: filter 750ms ease-in;
transition: filter 750ms ease-in;