How can I make my animate.css animation last forever? I tried to use animationIterationCount = "infinite"
. However, this doesn’t seem to have worked.
This is the plugin I’m using. import { Flash } from 'animate-css-styled-components';
JavaScript
x
4
1
<Flash duration=".8s" delay="1s" animationIterationCount = "infinite">
2
<Button primary>LOG IN <AiFillLock /></Button>
3
</Flash>
4
Thank you!
Advertisement
Answer
you’d need to use iterationCount
as the prop.
JavaScript
1
4
1
<Flash duration=".8s" delay="1s" iterationCount="infinite" >
2
<Button primary>LOG IN <AiFillLock /></Button>
3
</Flash>
4
And ensure you have styled-component installed.