Recently, in order to make a static web version of the data report, do not want to spend a lot of time to design the page, or take the time to adjust the layout, then found a free jquery plug-in named Smint. You can complete a one-page Web site with little or no code to write. This is ideal for making static Web pages, such as biographical presentations, multi-image sharing, advertising details, product introductions, and project or system introductions. This plugin provides a basic interface style and sliding menu, very simple and friendly, has been actually used, is now shared, I hope more people like.
Smint is a simple jquery plugin for a one-page website enthusiast, currently in its 3.0 version.
Official website Address:
Http://www.outyear.co.uk/smint
Demo Address:
http://www.outyear.co.uk/smint/demo/
Smint has two main elements, one is a sticky navigation bar, which remains at the top of the page and is assigned to the current menu when the page scrolls down, and when you click on the menu button, the page automatically scrolls to the part you clicked.
How do I use it?
1. First introduce the JavaScript class library in the head part of the webpage:
2, create a menu, give it a style name, such as: submenu, like the following code:
<Divclass= "submenu"><Divclass= "inner"><aclass= "Subnavbtn"href= "#sTop">Home</a><aclass= "Subnavbtn"href= "#section1">Form process</a><aclass= "Subnavbtn"href= "#section2">Efficiency of signing nuclear</a><aclass= "Subnavbtn"href= "#section3">Behavior mode</a><aclass= "Subnavbtn"href= "#section4">User groups</a><aclass= "Subnavbtn"href= "#section5">System operation and Maintenance</a></Div></Div>
3. The href of each <a> tag corresponds to a page block (section):
<Divclass= "section Section1"><Divclass= "inner"><H1>Form process</H1><imgsrc= "Images/flow.png" /></Div></Div>
4. In the script section of the page, add the following snippet of JavaScript code to initialize the Smint:
function () { $ ('. submenu ')
5, Smint is really I have seen the simplest plug-in, he has only one option, that is, page scrolling speed:
$ ('. submenu '). Smint ({
' Scrollspeed ': +});
The default value is 500 milliseconds (half a second) and you can modify it to any value you like.
Smint: Free jquery Plugin for single-page websites