Commit edc0bade authored by cervoneluca's avatar cervoneluca

added fade animation on switch among pages

parent 6bbe446b
......@@ -28,3 +28,4 @@ fortawesome:fontawesome
mdg:validated-method
materialize:materialize
webtempest:animate
percolate:momentum
......@@ -57,6 +57,8 @@ mongo-id@1.0.5
npm-mongo@1.4.44_1
observe-sequence@1.0.12
ordered-dict@1.0.8
percolate:momentum@0.7.2
percolate:velocityjs@1.1.0
promise@0.7.2_1
random@1.0.10
reactive-dict@1.1.8
......
......@@ -4,7 +4,13 @@
</head>
<body>
{{>header}}
{{>Template.dynamic template=main}}
{{#momentum plugin="fade"}}
{{#if Template.subscriptionsReady}}
{{> Template.dynamic template=main}}
{{else}}
{{>loader }}
{{/if}}
{{/momentum}}
{{>footer}}
</body>
</template>
import { Template } from 'meteor/templating';
import './mainLayout.html';
import '../../loader/loader.html';
Template.mainLayout.helpers({
});
......@@ -7,8 +7,7 @@ import './timeline.html';
Template.timeline.onCreated(function timelinOnCreated() {
this.state = new ReactiveDict();
Meteor.subscribe('years');
Meteor.subscribe('years-short-titles');
const subscriptionHandle = this.subscribe('years-short-titles');
this.state.set('start-year','1981');
this.state.set('end-year','2016');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment