The development of packages atop of Ixhibition is encouraged, especially packages that add more animation sets and ones that provide additional functionality. However, in an attempt to streamline and standardise this such that multiple packages could be used in any given project, a set of guidelines are provided.
General GuidelinesThese guidelines apply to all packages:
var ixb = Ixhibition();
//Do either:
MyPackage(ixb); //Useful for packages only dealing with simple animation options
//Or
var mypackage = MyPackage(ixb); //Used for all other types of packages
Packages that only provide additional animation sets should follow these requirements:
ixb.saveOption("ma_1", function(data){
var settingsX = {
"segueType" : "vertical",
"phaseInDuration" : 2,
"phaseInAnimations" : [
{"transform" : "scale(0.7, 0.7)"},
{"transform" : "scale(0.7, 0.7)"},
{"transform" : "scale(1, 1)"}
],
"phaseOutDuration" : 2,
"phaseOutAnimations" : [
{"transform" : "scale(1.05, 1.05)"},
{"transform" : "scale(0.7, 0.7)"},
{"transform" : "scale(0.7, 0.7)"}
],
"phaseOverlap" : 1,
"segueDuration" : "overlap",
};
return settingsX;
});
Packages that only provide additional animation sets should follow these requirements: