Tue Mar 22 2022 02:14:55 GMT+0000 (Coordinated Universal Time)
Saved by @25vitalyzd2
$(document).on('click', 'a[href^="#"]', function (event) { event.preventDefault(); $('html, body').animate({ scrollTop: $($.attr(this, 'href')).offset().top }, 1000); });
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments