Smint: Free jquery Plugin for single-page websites

Source: Internet
Author: User
Tags introductions

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.