0.2.12 • Published 9 years ago

ember-cli-fullpagejs-view v0.2.12

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Ember-cli-fullpagejs-view

I integrated the nice looking fullPage.js library into the Bitzik front end and thought there might be someone else out there who might benefice from it.

PR are welcome, issues reporting too (even better if you report the solution as well!)

This is my first Ember-addon, do not hesitate to come up with suggestions/correction to make it more conventional.

Happy Ember coding!

Usage

At its simplest, You just have to use the FullpageJsView as base for your Ember view:

import Ember from 'ember';
import FullpageJsView from 'ember-cli-fullpagejs-view/view/fullpage-js-view';


export default FullpageJsView.extend({

});

Optionally, you can setup some customization:

import Ember from 'ember';

import FullpageJsView from 'ember-cli-fullpagejs-view/view/fullpage-js-view';

export default FullpageJsView.extend({
  fullpageOptions: {
    sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'],
		anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage', 'lastPage'],
		menu: '#menu',
		scrollingSpeed: 1000
  },

  fullpageSelector: ".fullpage-class",

  customInitilization: function () {},

  customRemoval: function () {}
});

Options are:

  • fullpageOptions: object to be pass on to the fullpage constructor
  • fullpageSelector: jQuery selector string that will be used to find the fullpage base element. Null or empty selector will default to this.$()
  • customInitialization: function that will be called when initizalising fullpage (i.e. on('didInsertElement'))
  • customRemoval: function that will be called once the addon has tried to clean up any trace of fullpage presence. If you find something that was forgotten put it here (or fill in an issue / send me a PR !)
0.2.12

9 years ago

0.2.11

9 years ago

0.2.10

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.1

9 years ago