{"id":28754267,"url":"https://github.com/zeroasterisk/meteor-flow-dynamics-animation","last_synced_at":"2025-06-17T01:08:23.269Z","repository":{"id":137934266,"uuid":"49516320","full_name":"zeroasterisk/meteor-flow-dynamics-animation","owner":"zeroasterisk","description":"Simple transitions/animations for FlowRouter using DynamicsJS","archived":false,"fork":false,"pushed_at":"2016-01-29T14:32:45.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-11T05:08:11.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zeroasterisk.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":"2016-01-12T17:18:25.000Z","updated_at":"2023-04-23T03:14:24.517Z","dependencies_parsed_at":"2023-04-23T03:14:24.297Z","dependency_job_id":null,"html_url":"https://github.com/zeroasterisk/meteor-flow-dynamics-animation","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/zeroasterisk/meteor-flow-dynamics-animation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Fmeteor-flow-dynamics-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Fmeteor-flow-dynamics-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Fmeteor-flow-dynamics-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Fmeteor-flow-dynamics-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroasterisk","download_url":"https://codeload.github.com/zeroasterisk/meteor-flow-dynamics-animation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroasterisk%2Fmeteor-flow-dynamics-animation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260269462,"owners_count":22983647,"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":"2025-06-17T01:08:14.500Z","updated_at":"2025-06-17T01:08:23.243Z","avatar_url":"https://github.com/zeroasterisk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Router transition animations based on DynamicsJS\n\nRelies on:\n\n* [kadirahq:flow-router](https://github.com/kadirahq/flow-router)\n* [zeroasterisk:dynamicsjs](http://dynamicsjs.com/)\n * [dynamicsjs](http://dynamicsjs.com/)\n\n## Install\n\n    meteor add zeroasterisk:flow-dynamicsjs-animation\n\n## Simple Usage\n\nFrom your layout, wrap the dynamic template in a selector...\n`MainContent` is the default selector, but you can configure it to whatever you like.\n\n    \u003cdiv id=\"MainContent\"\u003e\n      \u003cdiv class=\"container\"\u003e\n        {{\u003e Template.dynamic template=content}}\n      \u003c/div\u003e\n    \u003c/div\u003e\n\nFrom `FlowRouter` you can replace\n`BlazeLayout.render(\u003clayout\u003e, \u003cregions\u003e);`\nwith\n`FlowDynamicsAnimation.render(\u003clayout\u003e, \u003cregions\u003e);`\n\nOr for less typing, you can just do:\n\n`FlowDA.render(\u003cregions\u003e);`\n\n(NOTE: to omit the `\u003clayout\u003e` argument, you must have configured the layout,\nsee below).\n\n## Configuration \u0026 Advanced Usage\n\nThe default Configuration can be retrieved via:\n\n    FlowDynamicsAnimation.confDefault();\n\n    {\n      layout: \"MainLayout\",\n      contentSelector: \"#MainContent\",\n      modCurrent: {\n        opacity: 1,\n        translateX: 0,\n        translateY: 0\n      },\n      modInFrom: {\n        opacity: 0.1,\n        translateX: +650,\n        translateY: -30\n      },\n      modOutTo: {\n        opacity: 0,\n        translateX: -650,\n        translateY: +30\n      },\n      movement: {\n        type: dynamics.spring,\n        duration: 500\n      }\n    }\n\nThere is a basic getter/setter `config()` function:\n\n    FlowDynamicsAnimation.config(\u003cname\u003e, \u003cconfig\u003e);\n\nYou can change the default Configuration with something like:\n\n    var defaultConf = FlowDynamicsAnimation.confDefault();\n    defaultConf.movement.duration = 9999;\n    defaultConf.layout = \"FunkyBlazeLayoutName\";\n    defaultConf.contentSelector = \"#WrapperForContentRegion\";\n    FlowDynamicsAnimation.config(\"default\", defaultConf);\n\n_NOTE: the above config assumes your BlazeLayout template name is\n'FunkyBlazeLayoutName' and you have wrapped the dynamic template in `\u003cdiv\nid=\"WrapperForContentRegion\"\u003e...\u003c/div\u003e`_\n\nYou can create a new Configuration with:\n\n    var myConf = FlowDynamicsAnimation.confDefault();\n    myConf.layout = \"FunkyBlazeLayoutName\";\n    myConf.contentSelector = \"#WrapperForContentRegion\";\n    myConf.modInFrom = { translateX: -1000; translateY: -1000 };\n    myConf.modOutTo =  { translateX: -1000; translateY: -1000 };\n    myConf.movement =  {\n      type: dynamics.gravity,\n      duration: 1085,\n      bounciness: 434,\n      elasticity: 228\n    }\n    FlowDynamicsAnimation.config(\"myCustomConf\", myConf);\n\n_NOTE: the above config assumes your BlazeLayout template name is\n'FunkyBlazeLayoutName' and you have wrapped the dynamic template in `\u003cdiv\nid=\"WrapperForContentRegion\"\u003e...\u003c/div\u003e`_\n\nCreating multiple configurations allows you to easily toggle between a variety\nof animations.\n\nYou can set the current Configuration name with:\n\n    FlowDynamicsAnimation.currentName = \"myCustomConf\";\n\n_Until you change this, we stick with \"default\" / so for many \"basic\" needs,\nyou could just update the default Configuration_\n\nYou can also use the `render()` shortcut:\n\n    // this uses the currentName for config and the configured layout\n    FlowDynamicsAnimation.render(\u003cregions\u003e);\n\n    // this uses the \u003cname\u003e for config and the configured layout\n    FlowDynamicsAnimation.render(\u003cregions\u003e, \u003cname\u003e)\n\n    // this uses the \u003cname\u003e for config and \u003clayout\u003e\n    FlowDynamicsAnimation.render(\u003cregions\u003e, \u003cname\u003e, \u003clayout\u003e)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fmeteor-flow-dynamics-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroasterisk%2Fmeteor-flow-dynamics-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroasterisk%2Fmeteor-flow-dynamics-animation/lists"}