We have an example carousel written with Big Bird to give you a good starting point. It's heavily commented to show you some of the functionality of Big Bird.
The source code is also heavily commented, and there are a full suite of tests which help to illustrate the functionality provided.
Using Big Bird with Browserify
If you're using Browserify and you need an older jQuery than version 2.1, you'll have to shim it:
npm install --save bigbird
If you're using browserify-shim add the following to your
- Add proper UMD support
- Register on NPM
- Add CommonJS module support
- Refactor codebase
setElementsnow uses this.$el to search for
this.elsare now functions that accept a
nameand an optional
forceparameter to re-cache the element
setElementsmethod to dynamically assign
data-bb-el="blah"elements in a template into a
- Added underscore and eventable as dependencies
- Removed tiny pub sub in favour of eventable
- Tidied up initializer
- More compatible with other DOM libraries (although still relies on Tiny Pub Sub)
- Bower registered
- Refactoring controllers and views into one class called
- Added new
destroy()method for tearing down views to unbind events.
- Added a carousel example to help people get started.
- Heavily commented the source code.
- Initial release
- Fork it, pull it down.
npm installto get the grunt modules required.
- Make changes to the
- Run the tests and build the source using the
- Open a pull request, make sure the tests pass.
Big Bird is released under the MIT license: