Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change animation #36

Open
ghost opened this issue Jun 20, 2015 · 1 comment
Open

Cannot change animation #36

ghost opened this issue Jun 20, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 20, 2015

hey....
the animation won't change after the page is loaded,
i currently have 2 pages
i set the animation:
A to B : growl
B to A : fade

when i start to open the application from B to A the animation is fade
when i start to open the application from A to B the animation is growl

i wonder why this is happening, it shouldn't be like that right?
Thank You,

Code :

HomeTemplate.html

<template name="master_home">
    <div class="bg">                
        {{#momentum plugin=data}}
            {{> yield }}
        {{/momentum}}
    </div>
</template>

signup.html

<template name="signup" >
...
</template>

home.html

<template name="home" >
...
</template>

route:

Router.route('/',{  
    layoutTemplate:'master_home',
    data: function(){return {data:'left-to-right'}},
    action: function(){        
      this.render('home');
    }
});
Router.route('/signup',{  
    layoutTemplate:'master_home',
    data: function(){return {data:'right-to-left'}},
    action: function(){         
       this.render('signup');    
    }
});

Thank You.

@tmeasday
Copy link
Member

Hi @Spycomb - you can't change the plugin reactively in this way right now. Probably it makes sense that you should be able to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant