How can I make my scrollbar start in the middle of my container using https://github.com/noraesae/perfect-scrollbar
I'm trying to cheat it by using
$(".trek_main_timeline_wrap").perfectScrollbar();
$(".trek_main_timeline_wrap .ps-scrollbar-y-rail").css({
"left" : "5px",
"top" : "200px"
});
But this is only pushing the scrollbar down, not the content inside of the container.
You would just use scrollTop and update:
$('.ps-container').scrollTop(100).perfectScrollbar('update');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With