Giter VIP home page Giter VIP logo

onboard.js's Introduction

onboard.js is now ngOnboard (Discontinued & rewritten specifically for AngularJS)

onboard.js is a jQuery plugin that creates an elegant on-screen overlay for onboarding and product tours.

Originally created by Dozyatom, and inspired by intro.js, onboard.js does not use abstract z-index layering, and instead implements masks which allow normal interaction with your website without tampering with your markup.

Installing with Bower

$ bower install onboard.js

Installing oldschool

Ensure you have referenced a jQuery library installed:

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Download onboard.js and onboard.css and add the following assets:

<link href="onboard.css" rel="stylesheet">
<script src="onboard.js"></script>

Using

In you document ready, first attach the onboard to the body or other wrapping element you'd like to mask:

var onboard = $("body").onboard();

Then attach the steps to the elements to highlight, using jquery selectors:

onboard.addStep("#hello", "This step says hello");
onboard.addStep("#world", "This step says world");

Or instantiate onboard with predefined steps:

var onboard = $("body").onboard({
	steps: [{
		selector: '#element1',
		introduction: 'This is the first element'
	},{
		selector: '#element2',
		introduction: 'This is the second element'
	},{
		....
	}]
});

Then start the show!

onboard.start();

Methods

.onboard([options])

Attach the onboard to the selector

Parameters:

  • options : Object (optional) Control the gap between the highlighted element and the mask with margin

onboard.addStep(selector, introduction, stepOptions)

Add a step to the onboard

Parameters:

  • selector : jQuery selector identifying the DOM element to highlight
  • introduction : The string to display
  • stepOptions : Object with optional settings for margin and callback

onboard.start()

Start the onboard...

Roadmap & Contribution

  • Convert jQuery to pure JS
  • Add keypress support

ng-onboard

Be sure to check out ng-onboard for an awesome angular wrapper!

onboard.js's People

Contributors

tannerlinsley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.