Skip to content

Commit

Permalink
feat(setScrollPercent): add scroll behavior smooth (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsisexistence authored Mar 31, 2024
1 parent 976e939 commit c29161a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScrollyVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ class ScrollyVideo {
const targetPoint = startPoint + containerHeightInViewport * percentage;

// eslint-disable-next-line no-undef
window.scrollTo({ top: targetPoint });
window.scrollTo({ top: targetPoint, behavior: 'smooth' });
}

/**
Expand Down

0 comments on commit c29161a

Please sign in to comment.