Magic Panel - jQuery plugin for fast page scrolling
Using the Magic Panel plug-in, you can quickly create a side panel with which the page scrolls up, as it is done in Habrahabr and VK.

The plugin works well only with pages that have a fixed content area. Everything else is pretty simple:
')
We connect jQuery and the plugin itself:
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.magicpanel.js"></script>
Connecting plug-in styles:
<link type="text/css" rel="stylesheet" media="all" href="magicpanel.css" />
Styles can be changed by yourself, so there shouldn't be any problems with this setting. Suitable for any fixed site.
Turn on the socket:
$("body").magicPanel({minWidth:900});
minWidth - the width of the content area in px. The default is 970px;
That's all!
Download plugin on GithubFollow me on
twitterSource: https://habr.com/ru/post/165553/
All Articles