An open API service indexing awesome lists of open source software.

https://github.com/jasonmit/landmark.js

Sticks headers as user scrolls
https://github.com/jasonmit/landmark.js

Last synced: 2 months ago
JSON representation

Sticks headers as user scrolls

Awesome Lists containing this project

README

        

# Landmark.js
Landmark.js is a simple, light-weight, jquery plugin that allows you to display, what I call, "landmarks" as the user passes them while scrolling.

It's useful for notifying the user of the context of what they're reading if your page covers multiple topics. This allows for the user to rapidly scroll through your document to get to what they interested in.

## Demo
http://codepen.io/anon/pen/lHGId?editors=100

## Usage
$(document).ready(function() {
$('.landmark').landmark(
{ id: 'landmark-id' } /* this options object is optional */
);
});

This is optional, if you do not specify where landmark.js should display the landmarks one will be created for you.

Anchor 1

Included is example.html which should help you can get a better feeling for how this plugin is used.