Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Animate (fadeIn) 5 elements one by one with delay between them

$
0
0

@tHesTx wrote:

Hello,
I want to show some elements on a button click, but each element should appear with .5s delay from another.

<div class="elem"></div>
<div class="elem"></div>
<div class="elem"></div>
<div class="elem"></div>
<div class="elem"></div>

Normally with jQuery I'd do something like this:

$(".elem").each(function(index){
  $(this).delay(500*index).fadeIn(1000);
});

How can i do this in Ionic 3/Angular 4 ? Thanks for your time!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>