Adding opacity attribute
With tests