Giter Site home page Giter Site logo

angularjs-bandgallery's Introduction

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 bandGallery.css to your index.html
  5. add the module to your dependencies in app.js like
angular.module("yourApp", ["crymis-bandGallery"]);
  1. add the jQuery easing plugin to your project (for smoother animations) * http://jqueryui.com/easing/
  2. 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

angularjs-bandgallery's People

Contributors

crymis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angularjs-bandgallery's Issues

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.