Minimalistic but perfect custom scrollbar plugin
There's no css change on any original element
Do not affect the original design layout
The scrollbar css is fully customizable
The scrollbar size and position can be updated
function changeSize() { var width = parseInt($("#Width").val()); var height = parseInt($("#Height").val()); $("#Demo").width(width).height(height); // update scrollbars $('#Demo').perfectScrollbar('update'); // or even with vanilla JS! Ps.update(document.getElementById('Demo')); } $(function() { $('#Demo').perfectScrollbar(); // with vanilla JS! Ps.initialize(document.getElementById('Demo')); });
Please refer to the README file in GitHub Repo.
The MIT License (MIT)
Copyright (c) 2012-2017 Hyunje Jun and other contributors.