【问题标题】:How can we apply animations.css to GWT widgets.?我们如何将 animations.css 应用到 GWT 小部件?
【发布时间】:2016-03-23 18:57:03
【问题描述】:

我正在使用 GWT 并尝试使用 animation.css 应用诸如上滑、下滑等过渡效果

我在 html 文件中链接了 animation.css,例如,

<link rel="stylesheet" href="css/animate.css">

还包括一个脚本,

<script  type="text/javascript src="http://code.jquery.com/jquery-latest.min.js"></script>

我已将此 animation.css 类直接应用于我的面板或小部件,

        myPanel.addStyleName("slideInDown");

其中“slideInDown”是animation.css中的一个类名, 但效果并未应用于该 myPanel。 有人可以帮助解决上述情况下的问题吗?

【问题讨论】:

    标签: html css animation gwt gwt-animation


    【解决方案1】:

    我刚刚更改了将样式名称添加到 myPanel 的方式,

            myPanel.addStyleName("animated slideInDown");
    

    即在animation.css类名之前添加“animated”后,即“slideInDown”,css被应用到myPanel。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多