ScrollToFixed (jqueryFixedplugin) can fix the navigation or header of a webpage on the top or bottom, making it easier for users to operate or view information. In addition to navigation and header, you can also fix other content, such as advertisements and return to the top. This plug-in was used once some time ago and was changed to a website. The top menu bar must be fixed with the scroll of the scroll bar. I also wrote about it, but I only mentioned it in the article. The article address: fixed element LOCATION OF THE jQuery plug-in. In this article, I will make a summary.
I. scrolltofixed plug-in Function
Fixed the position of an element. The element is still displayed during Page scrolling.
Ii. Official scrolltofixed address
Https://github.com/bigspotteddog/scrolltofixed. There are instructions for use on the official address, and the following describes the attributes of the plug-in. The demo also contains detailed use cases, which can be downloaded and viewed.
Iii. How to Use scrolltofixed
The scrolltofixed plug-in is still widely used. We can fix the top, the sidebar, or "fixed any element on the page ". Through the use of other plug-ins, you can get very good results. If the scroll bar is detected to a certain position, a certain element is displayed. In the test case, we use the scrolltofixed plug-in together with the scrollto plug-in. For the specific effect, see the "test file" below ".
1. reference file
The scrolltofixed plug-in is very simple to use. You only need to reference two JavaScript codes. One file is jquery and the other is the js file required by the scrolltofixed plug-in.