$(document).ready(function () { $("#banner__knap").on("click", function () { $('html,body').animate({ scrollTop: $("body > main > div.margin-bottom-100px > div > div").offset().top - 189 }, 'slow'); }); });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter