简体   繁体   中英

Angular Material Progress Spinner with Image icons - (mat-spinner)

I Implemented mat-spinner in my project, but it only has few configurable changes like Color, mode of spinning. I want to include Image Icon which is the Logo of a brand/Company inside the spinner, how can i achieve it ?

Below is the Stackblitz link:

https://stackblitz.com/angular/lmgppgejqxdv

It has mode and color change but how do i include any image to fit inside the progress spinner ?

you can access the background layer of the spinner using:

.mat-progress-spinner svg {
  background: red;
}

Note however that the svg is subject to transforms, so the background may end up being rotated as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM