Improved opacity transition