J
J
JuJes2020-09-10 15:42:49
Vue.js
JuJes, 2020-09-10 15:42:49

How to make group opening animation and scroll animation?

Good day! Made positioning on the point of the scrollbar when the group is opened (gets + - to the center of the open group):

onGroupOpen(e) {
  if(e.length > 0) {
    let navbar = document.getElementByClassName('v-navigation-drawer__content') [0];
    let target = document.getElementById(e[0]);
    if(target) {
      navbar.scrollTop = (navbar.offsetHeight * e.length - (target.offsetTop+200));
    } 
  } 
}


But all this happens without animation, how to make the animation of the scroll, and the disclosure of the group?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question