Skip to content

Commit

Permalink
Changed project structure.
Browse files Browse the repository at this point in the history
Added dist/ and directories.
Created a separate module for the carousel directive called rrCarousel.
  • Loading branch information
Raphael Rafatpanah authored and persianturtle committed Oct 23, 2016
1 parent 87fb4c0 commit 46aaf19
Show file tree
Hide file tree
Showing 44 changed files with 34,660 additions and 659 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
bower_components/
.DS_Store
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2016 Raphael Rafatpanah

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Angular 3D Carousel

Angular is the only dependency (no jQuery).

## Example

Check out the [live demo](https://persianturtle.github.io/angular-3d-carousel/) or the [source code](https://github.com/persianturtle/angular-3d-carousel/blob/master/index.html).

## Usage

Include both the CSS and the JS files,
```html
<link rel="stylesheet" href="path/to/angular-3d-carousel.css">
```

```html
<script src="path/to/angular-3d-carousel.js"></script>
```

and add the `angular-3d-carousel` as a dependency.

```js
angular.module('app', ['angular-3d-carousel']);
```

Then use the `<carousel sides="sides"></carousel>` directive where you would like to use it.

Note: The `sides` attribute expects an array of objects. Currently, the each object should have the following properties:
- image (path to image)
- title (string)
- listItems (array of strings)

Change the template for your project's needs.

## Features
- Will always land exactly on one side.
- Uses `requestAnimationFrame` for a smooth animation.
- Dynamically add or remove sides.

## TODO
- Add unit tests.
- Add an API for accelerating and decelerating the carousel.
- Add keyboard events.

## License

Copyright (c) 2016 Raphael Rafatpanah

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "carousel",
"dependencies": {
"angular": "~1.5.8",
"angular-animate": "~1.5.8",
"angular-touch": "~1.5.8",
"viewport-units-buggyfill": "latest"
}
}
20 changes: 20 additions & 0 deletions bower_components/angular-touch/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "angular-touch",
"version": "1.5.8",
"license": "MIT",
"main": "./angular-touch.js",
"ignore": [],
"dependencies": {
"angular": "1.5.8"
},
"homepage": "https://github.com/angular/bower-angular-touch",
"_release": "1.5.8",
"_resolution": {
"type": "version",
"tag": "v1.5.8",
"commit": "303bfa9e400b2536dbc9e9fe781b31c2cab34665"
},
"_source": "https://github.com/angular/bower-angular-touch.git",
"_target": "~1.5.8",
"_originalSource": "angular-touch"
}
21 changes: 21 additions & 0 deletions bower_components/angular-touch/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Angular

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
68 changes: 68 additions & 0 deletions bower_components/angular-touch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# packaged angular-touch

This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngTouch).
Please file issues and pull requests against that repo.

## Install

You can install this package either with `npm` or with `bower`.

### npm

```shell
npm install angular-touch
```

Then add `ngTouch` as a dependency for your app:

```javascript
angular.module('myApp', [require('angular-touch')]);
```

### bower

```shell
bower install angular-touch
```

Add a `<script>` to your `index.html`:

```html
<script src="/bower_components/angular-touch/angular-touch.js"></script>
```

Then add `ngTouch` as a dependency for your app:

```javascript
angular.module('myApp', ['ngTouch']);
```

## Documentation

Documentation is available on the
[AngularJS docs site](http://docs.angularjs.org/api/ngTouch).

## License

The MIT License

Copyright (c) 2010-2015 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 46aaf19

Please sign in to comment.