Works great! However, I do agree with @Vermoot that it would nice to have something like sidebar.animation.contract-on-hoveroff.delay-duration-ms, too.
To piggy-back on this, I would like an option to delay the sidebar’s collapse when not(:hover). When I am trying close a tab and don’t use very precise movements, the sidebar collapses while I am trying to click the Close button. Gimme at least a few...