vishva-karma / MrHyde

A personal profile theme using Bootstrap
https://iwhiz.github.io/MrHyde/
MIT License
0 stars 3 forks source link

Add smooth scroll to page when clicking on header elements #4

Closed Alexius08 closed 4 years ago

Alexius08 commented 5 years ago

Resolves #1 for the latest browsers.

Another approach is available if support for older browsers is needed.

vishva-karma commented 5 years ago

@Alexius08 Please include the support for older browsers too. That will be great.

Alexius08 commented 5 years ago

Just pushed a JS-based smooth scroll function. The function would run in cases where the CSS-based approach don't work.

vishva-karma commented 5 years ago

That was quick and great. I will have a look at it and will close the merge.

vishva-karma commented 4 years ago

@Alexius08 If I understood it right, the new solution with jquery should work even on new browsers. isn't it??

Alexius08 commented 4 years ago

Although the jQuery solution would work on both old and new browsers, it would only run for older browsers. The CSS solution will be used for the newer ones.