summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models/preloading/preloading-view.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/view-models/preloading/preloading-view.ts')
-rw-r--r--catalog-ui/src/app/view-models/preloading/preloading-view.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/catalog-ui/src/app/view-models/preloading/preloading-view.ts b/catalog-ui/src/app/view-models/preloading/preloading-view.ts
new file mode 100644
index 0000000000..f299f2a30f
--- /dev/null
+++ b/catalog-ui/src/app/view-models/preloading/preloading-view.ts
@@ -0,0 +1,27 @@
+'use strict';
+
+interface IPreLoadingViewScope {
+ startZoomIn:boolean;
+}
+
+export class PreLoadingViewModel {
+
+ static '$inject' = ['$scope'];
+
+ constructor(private $scope:IPreLoadingViewScope) {
+ this.init($scope);
+ }
+
+ private init = ($scope:IPreLoadingViewScope):void => {
+ this.animate($('.caption1'), 'fadeInUp', 400);
+ this.animate($('.caption2'), 'fadeInUp', 800);
+ };
+
+ private animate = (element:any, animation:string, when:number):void => {
+ window.setTimeout(()=> {
+ element.addClass("animated " + animation);
+ element[0].style = "visibility: visible;";
+ }, when);
+ };
+
+}