update a opacity