Skip to content

Commit

Permalink
Document succession.contentBuildInAnimation & succession.contentBuild…
Browse files Browse the repository at this point in the history
…OutAnimation
  • Loading branch information
tejaede committed May 21, 2018
1 parent c2ed164 commit 5b69fef
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions ui/succession.reel/succession.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,51 @@ var Component = require("ui/component").Component;
*/
exports.Succession = Component.specialize(/** @lends Succession.prototype */{


/**
* To be assigned as component.buildInAnimation for
* components added to the succession stack.
*
* Using the defaults, succession animations can be defined with the following:
*
* .montage-Succession--push .montage-Succession--buildInFrom {}
* .montage-Succession--push .montage-Succession--buildIn {}
*
* .montage-Succession--pop .montage-Succession--buildInFrom {}
* .montage-Succession--pop .montage-Succession--buildIn {}
*
* .montage-Succession--replace .montage-Succession--buildInFrom {}
* .montage-Succession--replace .montage-Succession--buildIn {}
*
* .montage-Succession--clear .montage-Succession--buildInFrom {}
* .montage-Succession--clear .montage-Succession--buildIn {}
*/
contentBuildInAnimation: {
value: {
fromCssClass: "montage-Succession--buildInFrom",
cssClass: "montage-Succession--buildIn"
}
},

/**
* To be assigned as component.buildOutAnimation for
* components removed from the succession stack
*
* Using the defaults, succession animations can be defined with the following:
*
* .montage-Succession--push .montage-Succession--buildOut {}
* .montage-Succession--push .montage-Succession--buildOutTo {}
*
* .montage-Succession--pop .montage-Succession--buildOut {}
* .montage-Succession--pop .montage-Succession--buildOutTo {}
*
* .montage-Succession--replace .montage-Succession--buildOut {}
* .montage-Succession--replace .montage-Succession--buildOutTo {}
*
* .montage-Succession--clear .montage-Succession--buildOut {}
* .montage-Succession--clear .montage-Succession--buildOutTo {}
*/

contentBuildOutAnimation: {
value: {
cssClass: "montage-Succession--buildOut",
Expand Down

0 comments on commit 5b69fef

Please sign in to comment.