{"id":18421243,"url":"https://github.com/thompsonemerson/cardmove","last_synced_at":"2025-04-07T14:31:40.033Z","repository":{"id":58219465,"uuid":"77149139","full_name":"thompsonemerson/cardmove","owner":"thompsonemerson","description":"It's a plugin developed with JavaScript that allows you to dynamically animate angles and perspectives of cards on mouseover.","archived":false,"fork":false,"pushed_at":"2017-10-22T01:49:25.000Z","size":8235,"stargazers_count":33,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T19:43:49.669Z","etag":null,"topics":["angle","animated","card","javascript","mouseover","perspective"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thompsonemerson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-22T14:03:20.000Z","updated_at":"2023-02-26T16:22:45.000Z","dependencies_parsed_at":"2022-08-31T03:00:59.952Z","dependency_job_id":null,"html_url":"https://github.com/thompsonemerson/cardmove","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsonemerson%2Fcardmove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsonemerson%2Fcardmove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsonemerson%2Fcardmove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thompsonemerson%2Fcardmove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thompsonemerson","download_url":"https://codeload.github.com/thompsonemerson/cardmove/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247669886,"owners_count":20976467,"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":["angle","animated","card","javascript","mouseover","perspective"],"created_at":"2024-11-06T04:24:54.204Z","updated_at":"2025-04-07T14:31:39.140Z","avatar_url":"https://github.com/thompsonemerson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CardMove\n\n[![licence mit](https://img.shields.io/badge/licence-MIT-blue.svg)](http://thompsonemerson.mit-license.org/)\n[![Build Status](https://travis-ci.org/thompsonemerson/cardmove.svg?branch=master)](https://travis-ci.org/thompsonemerson/cardmove)\n[![GitHub version](https://badge.fury.io/gh/thompsonemerson%2Fcardmove.svg)](https://badge.fury.io/gh/thompsonemerson%2Fcardmove)\n[![Bower version](https://badge.fury.io/bo/cardmove.svg)](https://badge.fury.io/bo/cardmove)\n[![npm version](https://badge.fury.io/js/cardmove.svg)](http://badge.fury.io/js/cardmove)\n\n\u003e CardMove is a plugin developed with JavaScript that allows you to dynamically animate angles and perspectives of cards on mouseover.\n\n## Table of Contents\n\n- [Install](#install)\n- [Setup](#setup)\n- [How to Use](#how-to-use)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [History](#history)\n- [License](#license)\n\n## Install\n\nNPM:\n\n```bash\n$ npm install cardmove --save\n```\n\nBower:\n\n```bash\n$ bower install cardmove --save\n```\n\nYarn:\n\n```bash\n$ yarn add cardmove\n```\n\nIf you prefer you can just [download a ZIP](https://github.com/thompsonemerson/cardmove/archive/master.zip) file.\n\n\n## Setup\n\nFirst, include CardMove using the script located on the `dist` folder.\n\n```html\n\u003c!-- CardMove JS minified --\u003e\n\u003cscript src=\"dist/cardmove.min.js\"\u003e\u003c/script\u003e\n```\n\nNow we need to prepare our(s) card(s) markup for CardMove, like so:\n```html\n\u003c!-- Item --\u003e\n\u003cdiv class=\"card-item\"\u003e\n   \u003cdiv class=\"card-content\"\u003e\n     \u003c!-- Content of your item goes here --\u003e\n   \u003c/div\u003e\n\u003c/div\u003e\n\n\u003c!-- Starting CardMove --\u003e\n\u003cscript\u003e\n  new CardMove('.card-item');\n\u003c/script\u003e\n```\n\nWe're all set! CardMove is already working under the hood, and your card should be animated. Wasn't that easy?\n\n\n## How to Use\n\n| Property      | Type    | Default  | Description                                      |\n| :------------ | :-----: | :-------:| :----------------------------------------------- |\n| angle         | number  | 30       | Controls card's animation angle.                 |\n| perspective   | number  | 300      | Controls card's perspective.                     |\n| horizontal    | boolean | true     | Enables or disables horizontal animation.        |\n| vertical      | boolean | true     | Enables or disables vertical animation.          |\n| speed         | number  | 500      | Sets an animation speed in milliseconds.         |\n\n```html\n\u003c!-- HTML Element --\u003e\n\u003cdiv\n  class=\"card-item\"\n  data-card-angle=\"[value]\"\n  data-card-perspective=\"[value]\"\n  data-card-horizontal=\"[value]\"\n  data-card-vertical=\"[value]\"\n  data-card-speed=\"[value]\"\u003e\n\n  \u003cdiv class=\"card-content\"\u003e\n  ...\n```\n\n```html\n\u003c!-- JavaScript --\u003e\n\u003cscript\u003e\n   new CardMove('.card-item', {\n       angle: '[value]',\n       perspective: '[value]',\n       horizontal: '[value]',\n       vertical: '[value]',\n       speed: '[value]'\n   });\n\u003c/script\u003e\n\n\u003c!-- This is applied globally --\u003e\n```\n\n## Examples\n\n\u003e Check out a [demo on codepen](http://codepen.io/thompsonemerson/pen/aBxVma) \u003cbr\u003e\nImages by [lorempixel](http://lorempixel.com).\n\n![GIFs \u003c3](demo.gif)\n\n### Item 1\n\n\u003e Default\n\n```html\n\u003cdiv class=\"card-item\"\u003e\n   \u003cdiv class=\"card-content\"\u003e\n   ...\n```\n\n### Item 2\n\n\u003e Angle value `100`\n\n```html\n\u003cdiv class=\"card-item\" data-card-angle=\"100\"\u003e\n   \u003cdiv class=\"card-content\"\u003e\n   ...\n```\n\n### Item 3\n\n\u003e Horizontal value `false`\n\n```html\n\u003cdiv class=\"card-item\" data-card-horizontal=\"false\"\u003e\n   \u003cdiv class=\"card-content\"\u003e\n   ...\n```\n\n## Contributing\n\nYou can help improve these docs. Open an [issue](https://github.com/thompsonemerson/cardmove/issues/new) or submit a pull request.\n\n1. Navigate to the main page of the repository\n1. [Fork it!](https://github.com/thompsonemerson/cardmove#fork-destination-box)\n1. Create your feature branch: `git checkout -b my-new-feature`\n1. Commit your changes: `git commit -m 'Add some feature'`\n1. Push to the branch: `git push origin my-new-feature`\n1. Submit a pull request =D\n\n[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n## History\n\nSee [Releases](https://github.com/thompsonemerson/cardmove/releases) for detailed changelog.\n\n## License\n\n[MIT License](http://thompsonemerson.mit-license.org/) © Emerson Thompson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthompsonemerson%2Fcardmove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthompsonemerson%2Fcardmove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthompsonemerson%2Fcardmove/lists"}