aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/controllers/document-controller.js2
-rw-r--r--js/panels/presets/default-transition-presets.js30
2 files changed, 31 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 87e93465..7d982a62 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -372,7 +372,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
372 nextDocumentIndex = closeDocumentIndex - 1; 372 nextDocumentIndex = closeDocumentIndex - 1;
373 } 373 }
374 this.application.ninja.stage.stageView.switchDocument(this._documents[nextDocumentIndex]); 374 this.application.ninja.stage.stageView.switchDocument(this._documents[nextDocumentIndex]);
375 if(typeof this.activeDocument.stopVideos !== "undefined"){doc.stopVideos();} 375 if(typeof doc.stopVideos !== "undefined"){doc.stopVideos();}
376 this._removeDocumentView(doc.container); 376 this._removeDocumentView(doc.container);
377 }else if(this._documents.length === 0){ 377 }else if(this._documents.length === 0){
378 if(typeof this.activeDocument.pauseAndStopVideos !== "undefined"){ 378 if(typeof this.activeDocument.pauseAndStopVideos !== "undefined"){
diff --git a/js/panels/presets/default-transition-presets.js b/js/panels/presets/default-transition-presets.js
index 00873231..271ad821 100644
--- a/js/panels/presets/default-transition-presets.js
+++ b/js/panels/presets/default-transition-presets.js
@@ -88,6 +88,36 @@ exports.transitionPresets = {
88 "-webkit-transform": "rotate(180deg)" 88 "-webkit-transform": "rotate(180deg)"
89 } 89 }
90 }] 90 }]
91 },
92 {
93 "text": "Scale Up",
94 "selectorBase" : "scale-up",
95 "rules" : [{
96 "selectorSuffix" : "",
97 "styles" : {
98 "-webkit-transition": "-webkit-transform 0.4s ease-in"
99 }
100 }, {
101 "selectorSuffix" : ":hover",
102 "styles" : {
103 "-webkit-transform": "scale(1.4)"
104 }
105 }]
106 },
107 {
108 "text": "Scale Down",
109 "selectorBase" : "scale-down",
110 "rules" : [{
111 "selectorSuffix" : "",
112 "styles" : {
113 "-webkit-transition": "-webkit-transform 0.4s ease-in"
114 }
115 }, {
116 "selectorSuffix" : ":hover",
117 "styles" : {
118 "-webkit-transform": "scale(.5)"
119 }
120 }]
91 }] 121 }]
92 }] 122 }]
93}; \ No newline at end of file 123}; \ No newline at end of file