We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7c91b commit fdb7417Copy full SHA for fdb7417
src/cloudinary-image.component.ts
@@ -20,7 +20,7 @@ import { isBrowser } from './cloudinary.service';
20
21
@Component({
22
selector: 'cl-image',
23
- template: `<img [style.display]="shouldShowPlaceHolder ? 'none' : 'inline'" (load)="hasLoaded()">
+ template: `<img [ngStyle]="{opacity: shouldShowPlaceHolder ? '0' : '1', position: shouldShowPlaceHolder ? 'absolute' : 'unset'}"(load)="hasLoaded()">
24
<div [style.display]="shouldShowPlaceHolder ? 'inline' : 'none'">
25
<ng-content></ng-content>
26
</div>
0 commit comments