AngularJS-bandGallery

An AngularJS Directive that sets up a fullscreen gallery with all of your pictures.
1 person uses it
Author: 3726683?v=3 crymis

AngularJS-bandGallery

An AngularJS Directive that sets up a fullscreen gallery with all of your pictures.

Demo is available here

Adding to your project

To get the bandGallery to work, you just have to

  1. copy the bandGallery.js file into your directives directory
  2. add the bandGallery.js file to your index.html
  3. copy the bandGallery.css to your css directory
  4. add the jQuery easing plugin to your project (for smoother animations)
  5. you are done

Configuring the directive

You can place the directive wherever you want. Just add this html tag <band-gallery gallery-imgs='myImgs' nav-top-btn="true" nav-down-btn="true" page-nr="true"></band-gallery>

Attributes

  • gallery-imgs: require an array of objects with
    • key: "url", value: image url
    • optional[key: "title", value: image title which is in front of the image]
    • optional[key: "description", value: description of the image, which is placed under the title]
  • nav-top/down-btn: require a boolean value, "true" will show the overlay button (next, prev), "false" will hide it (note: goTop is visible if one direction-btn is visible)
  • page-nr: require a boolean value, "true" will show the page number on the bottom, "false" will hide it
    • If you don't add this attributes, the default setting is "true": nav-buttons and page-number are shown

Thanks

And that's it! Not too many of configuration for the usage of this neat gallery ;)

I would appreciate if you add a link to this repo, if you use the gallery anywhere! Also, please tell me, if you are in trouble with some configuration or if you have problems with using this directive.

Have fun!

Greets Crymis

comments powered by Disqus
This page was last updated about 2 years ago.