Hallo Chaitra,
In such case the transparent areas will shine through. Especially during a transition between two components, both are shown simultanously. Accordingly, the contents of both components appear mixed together. Solution:
Option 1: Make the component opaque (with e.g. a filled rectangle)
Option 2: Avoid the transition between the both components. Instead first hide the one and the show the another.
Best regards
Paul Banach