skip to Main Content

Html – Angular – Dynamic text gradient

I am attempting to dynamically change the gradient background of some text in Angular. My current code is as follows: home.component.html <div class="name" [style.background]="gradient" [style.-webkit-background-clip]="'text'" [style.background-clip]="'text'">Text Here</div> home.component.sass .name color: transparent font-family: Tahoma, sans-serif background: #FA8BFF background-clip: text -webkit-background-clip: text…

VIEW QUESTION
Back To Top
Search