Ever wish hipsters would just go away? It's as easy as a click.
For Internet Explorer we need to add an extra piece of code with the filter style. Setting an element's opacity with the filter style is achieved like this:
With the filter style you must enter opacity as a percent instead of a decimal. So to achieve a cross-browser opacity setting for any given element, use both of the above styles in conjunction thusly:
Below is the full script that makes Pabst the Hispter disappear above. I works in exactly the same way, except that I've added some extra features to control the speed of the fade, allow for a script to be called when the fade is complete, and a little more automation.
I've also added some cross-browser compatibility code (to help Internet Explorer along.) The "Browser Detect" script is available from Quirksmode. Feel free to copy and paste the code in your editor of choice and play around with some of the extra parameters.
The entire script: