-1

I'd like to know if there is way to do this. I'm trying to increment the duration of a css animation. I couldn't find the right syntax to make it. Thanks !

      <app-product *ngFor="let vetement of vetements; let i = index"

        [ngStyle]="{ 'animation': 'appear ease i*100 ms '}"

            title="{{vetement.title}}" 
             type="{{vetement.type}}" 
      description="{{vetement.description}}"
            price="{{vetement.price}}" 
         imageURL={{vetement.image}}>
  </app-product>
guilhc
  • 1

1 Answers1

0

Ok just found it, working like this :

 [ngStyle]="{ 'animation-duration' :  (i*100) + 'ms'}"
guilhc
  • 1