The MasterLayout is still there; only the child template has been destroyed. You might be able to use the child template rendered
/destroyed
handlers. If the animation is only relevant to the parent template elements, you might be able to create an autorun function that starts the animations based on your reactive boolean variable. For example, assuming your boolean is a Session
variable (though it will work with any reactive variable):
Deps.autorun(function() {
if (Session.get("myBoolean")) {
// start animation
}
});
Now any time you Session.set("myBoolean", true)
, the animation will run.