I am looking to add animation to my button, where the arrows change color from white to accent (border color) in sequence from left to right. There should be a delay of around 50ms before each arrow is highlighted.
https://i.sstatic.net/4zwZo.png
<button className="submit-button" onClick={showButtonAnimation}>
<span className={'span-button'}>{'>'}</span>
<span className={'span-button'}>{'>'}</span>
<span className={'span-button'}>{'>'}</span>
<span className={'span-button'}>{'>'}</span>
<span className={'span-button'}>{'>'}</span>
</button>
This code represents my button element...
Could you suggest how showButtonAnimation
could be implemented?