{"id":16188292,"url":"https://github.com/konsumer/angular-cardflow","last_synced_at":"2025-03-19T03:30:40.817Z","repository":{"id":13860624,"uuid":"16558393","full_name":"konsumer/angular-cardflow","owner":"konsumer","description":"An angular ngRepeat-based coverflow for a bunch of cards that uses CSS3 animations efficiently","archived":false,"fork":false,"pushed_at":"2014-08-18T01:34:58.000Z","size":2660,"stargazers_count":16,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T14:52:25.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/konsumer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T21:08:05.000Z","updated_at":"2019-01-22T16:11:36.000Z","dependencies_parsed_at":"2022-08-30T16:10:58.940Z","dependency_job_id":null,"html_url":"https://github.com/konsumer/angular-cardflow","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsumer%2Fangular-cardflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsumer%2Fangular-cardflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsumer%2Fangular-cardflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konsumer%2Fangular-cardflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konsumer","download_url":"https://codeload.github.com/konsumer/angular-cardflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965768,"owners_count":20375916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T07:25:50.000Z","updated_at":"2025-03-19T03:30:40.493Z","avatar_url":"https://github.com/konsumer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Cardflow\n\nThis is for making ng-repeat items that flow into a nice \u0026 efficient coverflow.  It is inspired by [angular-coverflow](https://github.com/southdesign/angular-coverflow) and [angular-carousel](https://github.com/revolunet/angular-carousel), but differs in a few ways:\n\n*  It can handle images, divs, or whatever you like, including ngRepeats. First-level children are the \"cards\".\n*  Uses Angular's `$swipe`\n*  It has multiple interaction modes\n*  Lots of attribute options with sensible defaults\n\nHere are some more features:\n\n*  mobile-friendly, tested on webkit+firefox. Should work ok on IE8+ (untested)\n*  use CSS 3D transformations directly, no `requestAnimationFrame()` or `setTimeout()`.\n*  all the look is defined in your own CSS, or use mine, if you want it to look the same.\n*  data-binding \u0026 callbacks\n\nSee a [demo](http://konsumer.github.io/angular-cardflow/)\n\n## Usage\n\nSee files in `examples` for usage examples, but here's the basics:\n\n1. Include the cardflow.js script provided by this component into your app. (if you are using bower, type `bower install angular-cardflow`, then add `bower_components/angular-cardflow/cardflow.js` to  your HTML)\n2. Add angular-cardflow as a module dependency to your app.\n3. Add CSS to make it look nice. I tried to keep all of the look \u0026 animation in CSS only, for maximum configurability. There is a simple example in `examples/cardflow.css`, and see `.cardflow-fancy` stuff in `examples/demo.css` for fancier styles. You may not want to use shadows \u0026 gradients on things that move (or things under moving things) for good performance on mobile.\n\n## Attributes\n\n### current\n\nYou can force the current card, if you don't want it to be the first one.\n\n### mode\n\nYou can set different interaction modes with the `mode` attribute. Here are the available options:\n* `none` - no swipe interaction: just use model.current to set cards. You will have to do your own bounds checking\n* `swipeSnapKinetic` (default) - swipe left or right, watch velocity \u0026 snap to individual card on slow down. sort of like [angular-coverflow](https://github.com/southdesign/angular-coverflow), but snap to cards. For some reason, on firefox, this looks like `swipeSnap`. Need to investigate.\n* `swipeSnap` - no kinetic, just snap to new active card\n* `swipe` - Like swipeSnap, but no snapping to card\n* `swipeSnapOne` - swipe left or right to advance 1. sort of like [angular-carousel](https://github.com/revolunet/angular-carousel).\n* `swipeSnapPage` - Like swipeSnapOne, but by the page\n\n## model\n\n`model` is used if you need to reach into the directive with data-binding. It's cool for indicators or buttons that jump to specific cards. It gives you access to these:\n\n*  `current` - the read/writable index of the current card. Put a `$watch` on it to do something when current changes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonsumer%2Fangular-cardflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonsumer%2Fangular-cardflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonsumer%2Fangular-cardflow/lists"}