The AnimationManager will store the global settings and manage all stuff common to all animations
Copy bga-animations.js file to the modules
directory.
Then you can include the module on your game :
JS file:
define([
"dojo","dojo/_base/declare",
"dojo/debounce",
"ebg/core/gamegui",
/*...,*/
g_gamethemeurl + "modules/bga-animations.js",
],
function (dojo, declare, debounce, gamegui, /*...,*/ bgaCards) {
See examples to see how to create a manager to call animations functions.