Staggered List Animation in Ionic (without SASS)

preview_player
Показать описание
In this video, we take a look at how to create a staggered animation for a list of items using CSS variables instead of SASS and nth-child.

#ionic #stenciljs #animation



Рекомендации по теме
Комментарии
Автор

If you have infinite loader then this is not a good option. Better use angular stagger animation.

ikgeek
Автор

Great tutorial Morony, exactly i was searching... thank you...

anroswell
Автор

hey josh, i tried this in angular, and I can't seem to make it work.

<ng-container *ngFor="let task of tasks; let i = index">

<ion-item lines="none" style="--animation-index: {{ i }}" class="animate-header" >
<ion-label slot="start" class="ion-padding-start">

</ion-label>

</ion-item>
</ng-container>


animate-header is the class where the animation is. Please help mee. Thank you.

surrajramanathan
Автор

how will this work with virtual scrolling? Before I had to use an interceptor observor but not sure now.

RossRawlins