Update opacity snippet.