Good day. There is a script for scrolling up the page to the given id div. How to make so that at the end of scrolling the given div is highlighted for a few seconds with a frame. Please tell me the solution.
$(document).ready(function(){ $('a[href^="#"]').on('click',function (e) { e.preventDefault(); var target = this.hash; var $target = $(target); $('html, body').animate({ 'scrollTop': $target.offset().top }, 1000, 'swing'); }); });
animatehas a callback for when the animation is over. There you can use the secondanimateandcssadd + remove the frame. - br3t