Fading in and Out of Top Bar – idea
-
Hello Bob (and others:),
Thanks for the great plugin and your most considerate and detailed responses.
Re: fading in the top bar,
I saw the post from a year ago when someone asked about it…
I was looking into it a little and please look at this perhaps it can work with your knowledge. I copied the code from this page:
https://christianheilmann.com/2013/09/19/quicky-fading-in-a-newly-created-element-using-css/javascript:
div = document.createElement('div'); document.body.appendChild(div); div.className = 'fade';
css:
div { background-color: black; display: block; height:100px; width:100px; opacity: 0; } div.fade { -webkit-animation: fade 5s; animation: fade 5s; opacity: 1; } /* -fail- */ @-webkit-keyframes fade { from {opacity: 0} to {opacity: 1} }@keyframes fade { from {opacity: 0} to {opacity: 1} }
I put the CSS in Option C CSS box.
I’m not sure where to put the Javascript.
If it doesn’t go in the CSS & HTML boxes, I can put it in a snippet plugin so I don’t have to edit any plugin files.
Also, do any references in this code need to be changed to match plugin references?What do you think? I’ll try what you say if you think this is close enough to give it a go.
Thank you for your consideration.
-Shelly
- The topic ‘Fading in and Out of Top Bar – idea’ is closed to new replies.