Ensure elements have the right opacity

Picked from 558ebd1:

When an update.transition event is called soon after the
enter.transition event, the fade-in transition is cancelled, which
leaves the element with a low opacity. This commit ensures that
update.transition makes the element fully opaque in all situations.