I am trying to make a scroll animation by using JQuery but it seems like the element I am trying to scroll is located in #shadow-root.
The element which I am trying to scroll is the main container. Element tree:
html body core-scaffold#scaffold #shadow-root core-drawer-panel#drawerPanel core-header-panel#headerPanel #shadow-root div#outerContainer div#mainPanel div#mainContainer
- Can you manipulate #shadow-root with JQuery in Polymer?
- Is there another way to animate scroll effect in Polymer?
JQuery:
$("#mainContainer").animate({
scrollTop:$( $('#'+doc_card_id).offset().top)
},1000, function(){
console.log($("#doc-card-list")[0].scrollHeight + ' ' + $('#'+doc_card_id).offset().top);
})