After implementing the ng2-image-viewer library for my image viewer, I noticed that it dynamically loads several HTML components. I would like to change the CSS of certain elements that are dynamically loaded.
Here is the default setup:
https://i.sstatic.net/I7bmZ.png
Before rendering, the HTML component looks like this:
<div class="image-viewer-container">
<app-image-viewer
[images]="[artURL]"
[loadOnInit]="true"
[idContainer]="'idOnHTML'"
[showOptions]="false"
>
</app-image-viewer>
</div>
And after rendering, the HTML component changes to:
<div _ngcontent-pyx-c10="" class="image-viewer-container">
<!-- More nested HTML structure here -->
</div>
I'm attempting to apply the following styles to the rendered HTML using SCSS but it doesn't seem to be taking effect.
.iv-snap-view{
visibility: visible !important;
opacity: 1;
}
.image-gallery-2{
visibility: hidden;
}