On scroll delay?

Author: ghostCreated Jun 25, 2020Updated Jan 8, 2024

Great library for starters but is there a way to delay the annotation until you've scrolled to a section on the page? I'm using the code below ATM. Thanks

`const annotate = RoughNotation.annotate; const annotationGroup = RoughNotation.annotationGroup;

const g1 = annotate(document.querySelector('.highlight'), { type: 'highlight', color: '#FAE633', multiline: true, animationDuration: 1500, animationDelay: 3000, iterations: 1 });

const ag = annotationGroup([g1]); ag.show(); `

Source: rough-stuff/rough-notation