Fade-effects for menu bar and iFrame-content
Posted: Thu Nov 26, 2020 4:21 pm
Hey,
i'm currently working on a webpage which includes a menu-bar and an iFrame which displays the altering content. That works fine, but now i want to add some effects to it.
On this page: https://www.die-pest.de/ you have two things i'd like to do, too.
First, there is a soft fade-to-white in the menu-bar when you hover your mouse over it.
I searched through the possibilitys of Events, Animations and Motion Effects but I can not find anything that is suitable to do such kind of thing to my responsive menu. Any thoughts about it?
Second, you have a fade-out and fade-in every time the content in the main-section changes. I managed to make my iFrame content fade-in (i think it was a "on load" event) but I can't get it to fade-out when I click on a different link. Is this even possible?
I think of a combination like: onclick: iFrame-fade-out, JS-return:true - to make the content appear, iFrame-fade-in. The End.
Regards, syd.
i'm currently working on a webpage which includes a menu-bar and an iFrame which displays the altering content. That works fine, but now i want to add some effects to it.
On this page: https://www.die-pest.de/ you have two things i'd like to do, too.
First, there is a soft fade-to-white in the menu-bar when you hover your mouse over it.
I searched through the possibilitys of Events, Animations and Motion Effects but I can not find anything that is suitable to do such kind of thing to my responsive menu. Any thoughts about it?
Second, you have a fade-out and fade-in every time the content in the main-section changes. I managed to make my iFrame content fade-in (i think it was a "on load" event) but I can't get it to fade-out when I click on a different link. Is this even possible?
I think of a combination like: onclick: iFrame-fade-out, JS-return:true - to make the content appear, iFrame-fade-in. The End.
Regards, syd.