jquery - animation scrollTop not working inside angular -


suppose tagname body work else not working.

    const element = angular.element('#' + "my-data");     let scrollelement = element.parent();      if (element && scrollelement) {     // if return <body> override    scrollelement = scrollelement.prop('tagname') === 'body' ? $('html, body') : scrollelement;      scrollelement.animate({     scrolltop: element.offset().top - offset      }, scrolltime, resolve);     } 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -