jamesflorentino / nanoScrollerJS

A jQuery plugin that offers a simplistic way of implementing Lion OS scrollbars.
http://jamesflorentino.github.com/nanoScrollerJS/
MIT License
2.69k stars 502 forks source link

Animation on height resize #280

Open OscarGalindo opened 9 years ago

OscarGalindo commented 9 years ago

Hi!

Is not whether it is a problem with nanoScroller or me, i have the .nano with max-height 400px, and the .nano-content height 100%, the content is a list with 10-15 items and when you click inside one, it toggle a div just after the li with information. The problem is the nanoscroller, change the size of the height dynamically without animation and make an ugly effect, here the code i use:

div.slideToggle("fast", function() {
    $('.tabs .acordeon:visible').nanoScroller({
        alwaysVisible: true,
        contentClass: 'scrolltrack'
    });
});

Thanks in advance!

kristerkari commented 9 years ago

Is it possible to get a small demo your problem? You can use services like Jsfiddle or Jsbin for it.