npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-elastic-grid

v1.0.7

Published

[![Build Status](https://travis-ci.org/lbenie/angular-elastic-grid.svg?branch=master)](https://travis-ci.org/lbenie/angular-elastic-grid) [![devDependency Status](https://david-dm.org/lbenie/angular-elastic-grid/dev-status.svg)](https://david-dm.org/lbeni

Downloads

4

Readme

angular-elastic-grid

Build Status devDependency Status Commitizen friendly version bower node

Installation

install angular-elastic-grid by bower or npm running the following command

bower install angular-elastic-grid --save
or
npm install angular-elastic-grid --save

or download here then append angular-elastic-grid.min.js in to end of body, before your project, after the angular and the other libs.

<!--using bower-->
...
...
<script src="../bower_components/angular-elastic-grid/dist/angular-elastic-grid.min.js"></script>
...
...
</body>
</html>
<!--using npm-->
...
...
<script src="../node_modules/angular-elastic-grid/dist/angular-elastic-grid.min.js"></script>
...
...
</body>
</html>

add angular-elastic-grid as a module dependency for your app

angular.module('my.app', [
    'angular-elastic-grid'
])

Usage

There are eight filter options for elastic_grid.js

  • popup
  • none
  • moveup
  • scaleup
  • fallperspective
  • helix
  • fly
  • flip

items must be an array. filter uses the 'none' filter if no filter is defined.

Optionals: direction, speed, height, delay and inverse.

<div elastic-grid>
</div>
...
or
...
<elastic-grid></elastic-grid>
...
or
...
<elastic-grid items="[{
  title: 'Title 1',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test']
}, {
  title: 'Title 2',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test, Title2']
}, {
  title: 'Title 3',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test, Title1']
}]" filter="popup"></elastic-grid>
...
or
...
<elastic-grid items="[{
  title: 'Title 1',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test']
}, {
  title: 'Title 2',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test, Title2']
}, {
  title: 'Title 3',
  description: 'This is a description.',
  thumbnail: ['http://placehold.it/350x150'],
  large: ['http://placehold.it/450x350', 'http://placehold.it/450x350', 'http://placehold.it/450x350'],
  button_list: [
    { title: 'Demo', url: 'http://placehold.it/450x350'},
    { title: 'Download', url: 'http://placehold.it/450x350'}
  ],
  tags: ['Test, Title1']
}]" filter="popup" direction=true speed=500 height=500 delay=0 inverse=false> </elastic-grid>
...
...

Development

  • install node and bower on your environment

cd to your desired folder and clone angular-elastic-grid repository

git clone https://github.com/lbenie/angular-elastic-grid
cd angular-elastic-grid

install all project dependencies

npm install
bower install

serve automated test once

#unit test without live reload
gulp test-src

serve automated tests and builds

#unit test with live reload + build
gulp

build all to distribution

#this generates minified src at `dist/angular-elastic-grid.min.js`
gulp build

Notes:

  • To contribute with this awesome project, just open an issue, then fork the project and make a new branch to do your work.

  • Run gulp build before making your PR.

  • Changelog

Feel free to open issues if you run into a problem or if you just have suggestions. PR´s are always welcome.


License

angular-elastic-grid is open-sourced software licensed under MIT.