{"id":15282608,"url":"https://github.com/bradmartin/nativescript-animatecss","last_synced_at":"2025-04-12T23:07:14.719Z","repository":{"id":57320064,"uuid":"51617857","full_name":"bradmartin/nativescript-animatecss","owner":"bradmartin","description":"NativeScript plugin for Android to mimic Animate.CSS animations on Android views.","archived":false,"fork":false,"pushed_at":"2016-04-30T03:23:43.000Z","size":3693,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-23T09:37:39.928Z","etag":null,"topics":["android","animatecss","css-animations","nativescript","nativescript-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradmartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-12T21:32:51.000Z","updated_at":"2024-05-30T16:15:05.000Z","dependencies_parsed_at":"2022-08-26T01:11:29.800Z","dependency_job_id":null,"html_url":"https://github.com/bradmartin/nativescript-animatecss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-animatecss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-animatecss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-animatecss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-animatecss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmartin","download_url":"https://codeload.github.com/bradmartin/nativescript-animatecss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232024693,"owners_count":18461967,"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":["android","animatecss","css-animations","nativescript","nativescript-plugin"],"created_at":"2024-09-30T14:31:34.977Z","updated_at":"2024-12-31T19:57:19.514Z","avatar_url":"https://github.com/bradmartin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/nativescript-animatecss.svg)](https://www.npmjs.com/package/nativescript-animatecss)\n[![npm](https://img.shields.io/npm/dt/nativescript-animatecss.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-animatecss)\n\n# NativeScript-AnimateCSS \nNativeScript plugin for Android to mimic Animate.CSS animations on Android views.\n\nThis plugin uses [AndroidViewAnimations](https://github.com/daimajia/AndroidViewAnimations) by [daimajia](https://github.com/daimajia)\n\n### AnimateCSS Usage \n\n![TwitterBang](screens/animateCss.gif)\n\n## Installation\n`npm install nativescript-animatecss`\n\n## Usage\n\n### XML:\n```XML\n\u003cPage xmlns=\"http://schemas.nativescript.org/tns.xsd\" loaded=\"pageLoaded\"\u003e\n    \u003cPage.actionBar\u003e\n    \u003cActionBar title=\"NativeScript-AnimateCss\" color=\"#fff\" backgroundColor=\"#03A9F4\" /\u003e\n  \u003c/Page.actionBar\u003e\n    \u003cScrollView\u003e\n        \u003cStackLayout\u003e\n            \u003cbutton text=\"Animate Css FTW!\" tap=\"animateIt\" /\u003e\n            \u003cimage src=\"~/images/yoda.jpg\" stretch=\"aspectFit\" height=\"200\" tap=\"flashIt\" /\u003e\n            \u003cimage src=\"~/images/batman.jpg\" stretch=\"aspectFit\" height=\"200\" tap=\"rotateIn\" /\u003e\n            \u003cimage src=\"~/images/excellent.jpg\" stretch=\"aspectFit\" height=\"200\" tap=\"rubberBand\" /\u003e\n        \u003c/StackLayout\u003e \n    \u003c/ScrollView\u003e\n\u003c/Page\u003e\n```\n\n### JS:\n```JS\nvar animatecss = require(\"nativescript-animatecss\");\n\nfunction animateIt(args) {\n    // get the native android widget for the view\n    var nativeView = args.object.android;\n    animatecss.animate({ view: nativeView, cssClass: 'Hinge', duration: 600 }).then(function (result) {\n        console.log(result);\n    }, function (err) {\n        console.log(err);\n    });\n}\nexports.animateIt = animateIt;\n```\n\n\n### API\n\n- animate(options) \n - **view** : native android view\n - **cssClass** : string class name\n - **duration**: int in milliseconds\n\n### Effects\n#### Attention\n`Flash`, `Pulse`, `RubberBand`, `Shake`, `Swing`, `Wobble`, `Bounce`, `Tada`, `StandUp`, `Wave`\n\n#### Special\n`Hinge`, `RollIn`, `RollOut`,`Landing`,`TakingOff`,`DropOut`\n\n#### Bounce\n`BounceIn`, `BounceInDown`, `BounceInLeft`, `BounceInRight`, `BounceInUp`\n\n#### Fade\n`FadeIn`, `FadeInUp`, `FadeInDown`, `FadeInLeft`, `FadeInRight`\n\n`FadeOut`, `FadeOutDown`, `FadeOutLeft`, `FadeOutRight`, `FadeOutUp`\n\n#### Flip\n`FlipInX`, `FlipOutX`, `FlipOutY`\n\n#### Rotate\n`RotateIn`, `RotateInDownLeft`, `RotateInDownRight`, `RotateInUpLeft`, `RotateInUpRight`\n\n`RotateOut`, `RotateOutDownLeft`, `RotateOutDownRight`, `RotateOutUpLeft`, `RotateOutUpRight`\n\n#### Slide\n`SlideInLeft`, `SlideInRight`, `SlideInUp`, `SlideInDown`\n\n`SlideOutLeft`, `SlideOutRight`, `SlideOutUp`, `SlideOutDown`\n\n#### Zoom\n`ZoomIn`, `ZoomInDown`, `ZoomInLeft`, `ZoomInRight`, `ZoomInUp`\n\n`ZoomOut`, `ZoomOutDown`, `ZoomOutLeft`, `ZoomOutRight`, `ZoomOutUp`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-animatecss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradmartin%2Fnativescript-animatecss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-animatecss/lists"}