Change style of pseudo elements in angular2

后端 未结 4 516
[愿得一人]
[愿得一人] 2020-11-27 18:53

Is it possible to change style of pseudo elements using [style] or [ngStyle] in angular2?

in order to get a blur effect on a div acts like

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 19:20

    if you want to add other properties I did it like this:

    and the css:

    .progress::after {
      content: '';
      width: var(--porcentaje-width);
    }
    

    this worked for me :)

提交回复
热议问题