Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor 在流星中使用地基6.3 我添加了流星包基金会ZURB:基金会网站。这是在使用v.6.3(我无法使用v6.4.1使npm包正常工作)_Meteor - Fatal编程技术网

Meteor 在流星中使用地基6.3 我添加了流星包基金会ZURB:基金会网站。这是在使用v.6.3(我无法使用v6.4.1使npm包正常工作)

Meteor 在流星中使用地基6.3 我添加了流星包基金会ZURB:基金会网站。这是在使用v.6.3(我无法使用v6.4.1使npm包正常工作),meteor,Meteor,我已将main.scss文件导入: @import '{zurb:foundation-sites}/scss/foundation'; @include foundation-everything; 我的模板: Template.myReveal.onRendered(function () { this.myRevealInstance = new Foundation.Reveal($('#myReveal')); }); Template.myReveal.onDestroyed

我已将main.scss文件导入:

@import '{zurb:foundation-sites}/scss/foundation';
@include foundation-everything;
我的模板:

Template.myReveal.onRendered(function () {
  this.myRevealInstance = new Foundation.Reveal($('#myReveal'));
});

Template.myReveal.onDestroyed(function () {
  let reveal = this.myRevealInstance;
  if (reveal) {
    reveal.destroy();
  }
});
我的html:

<template name="myReveal">
<p><button class="button" data-toggle="myReveal">Click me for a modal</button></p>
<div class="reveal" id="myReveal" data-reveal data-animation-in="fade-in" data-animation-out="fade-out">
    <h1>Awesome</h1>
    <p class="lead">Your couch. It is mine.</p>
    <p>I'm a cool paragraph that lives inside of an even cooler modal. Wins!</p>
    <button class="close-button" data-close aria-label="Close reveal" type="button">
        <span aria-hidden="true">&times;</span>
    </button>
</div>

但是没有运气。我尝试添加zurb:motion.ui包,但仍然没有成功。如何让动画正常工作?

我们无法帮助调试“不走运”。你能具体解释一下你遇到了什么问题和错误吗?显示模态可以工作,但没有动画。使用“data reveal data animation in=”淡入“时,不会看到模态的动画。看起来这是一个插件,但应该已经初始化了。
Template.myReveal.onRendered(function () {
  $(document).foundation();
});