Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any option to draw svg on scroll? #245

Open
ghost opened this issue Aug 23, 2022 · 1 comment
Open

Is there any option to draw svg on scroll? #245

ghost opened this issue Aug 23, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2022

Is there any given option to draw SVG based on scroll position?

@maxwellito
Copy link
Owner

Hi there,

Sadly the library doesn't offer a scroll library to control the drawing percentage.
Consider using a library that can trigger events when an element is visible in the viewport with percentage of visibility.
Once set up, you will be able to control the drawing percentage by using the setFrameProgress method on your Vivus object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant