We can use the feed toggle method if we want to be able to feed our elements in and out using the same
button.
Here's an example if we clicked the feed toggle button once the elements failed in if we pressed the
button again the elements fade out
to do this.
We simply need to make a few small changes in our script.
First we need to change the fade out event to fade.
Toggle
and we need to do this for each div
next.
We need to add our display none property back into the style sheet because we we don't want any of the
divs to be visible on page load
and that's it.
You can now save the changes and refresh your web browser to see the effect.