Skip to content

Commit

Permalink
fix(inpageNavigation) : add smooth scroll animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Odisseas Simou committed Mar 14, 2022
1 parent 3641d78 commit 42f6564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/InpageNavigation/InpageNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class InpageNavigation extends Component {
}

onInpageNavigationClick = () => {
window.scrollTo(0, 0);
window.scrollTo({
top: 0,
behavior: 'smooth'
});
};

render() {
Expand Down

0 comments on commit 42f6564

Please sign in to comment.