用于創建單頁網站的jQuery插件
對于內容少或簡化瀏覽體驗,單頁網站都是一種不錯的選擇。下面介紹的這些插件剛好能實現這樣的需求:
jQuery Scroll Path
That's a very original plugin which allows us to draw a totally custom scroll path (with curves) of any size.
HTML elements can be placed along the path and events like mousewheel, up/down arrow keys or spacebar will get you to the next element with an animation that follows the path.
An optional custom scrollbar is included which allows click and drag scrolling. Also, the plugin allows rotating the entire page using CSS transforms.
Curtain.js
Curtain.js can display multiple fixed panels with a curtain-rise effect which is great for creating a nice scroll effect.
It is also possible to use the keyboard or mousewheel for scrolling.
Zoomooz.js
Zoomooz is actually a zooming plugin, however, it can be easily used to focus on different sections in a single page.
Pagify.js
This jQuery plugin is specifically created for single-page websites.
It works by creating the contents of each menu as separate HTML files and loads those HTML files inside a defined
jQuery One Page Navigation Plugin
A plugin which can scroll to the given links with a nice easing animation.
It has the ability to block the hash change in the address bar and the speed of the animation can be customized.
There are also very good alternatives for this behaviour. Check jQuery Smooth Scroll and Smooth Scrolling.
JustaPage
JustaPage is more than a plugin but a template for designing one-page websites.
The template works cross-browser and it is mobile-friendly.
Other Resources
You may want to check out scrolling and parallax plugins like Scrollorama (and SuperScrollorama) to make the browsing experience a little fun.
Also, in order to display more content in single page websites, lightbox/modalbox and tooltip solutions can help a lot.
Lightbox/modal plugins:
- ColorBox: Highly-Customizable jQuery Lightbox
- Flexible Modal Windows With jQuery Superbox!
- leanModal – A Micro jQuery Modal Plugin
- Responsive Lightbox With jQuery UI – rlightbox
Tooltip plugins: