added opacity change to boolean