Fixed transition delay to only apply when hiding.
Some comments added to addon.js