The cleanest way would probably be to create a flashing CSS style like in this post:
That would automatically loop as long as 'infinite' is checked.
Then, you put an expression binding on props.style.classes
:
if({mytag}, 'flashing', '')
assuming your CSS style class is called flashing
and your tag is mytag
. Adjust the names to fit your situation.
6 Likes