prjct-samwest/scrollCue

Possible to add a delay to start animation?

Closed this issue · 2 comments

Hello.

Thanks for this amazing library. It does the perfect job for my website. However, I was wondering if we can add a slight delay for a certain animation to start. That would just be a cherry on top.

Hello.

Thanks for the report and support .
Unfortunately, the delay function is not implemented for the animation itself.

However, it's a bit rough, but you may be able to delay it in the following way.

HTML

<img src="example.jpg" data-cue="fadeIn" data-addClass="delay">

CSS

.delay{
  animation-delay: 2s !important;
}

Thank you.

Works perfectly, thanks a lot!