Set opacity to element