GWT可用于商业用途的效果库有哪些?
我正在寻找一个特效库,我可以很容易地进入我现有的GWT应用程序。我想将库添加到构建路径中,然后开始编写类似于GWT可用于商业用途的效果库有哪些?,gwt,effects,Gwt,Effects,我正在寻找一个特效库,我可以很容易地进入我现有的GWT应用程序。我想将库添加到构建路径中,然后开始编写类似于FX.fadeOut(thisWidget)的内容来替换thisWidget.setVisible(false) 对于GWT,有什么可靠的、小的东西可以做这种简单的事情吗?我正在编写一个非开源的商业应用程序。签出,一个用于GWT的JQuery克隆。“效果”类的文档如下所示。 它是根据Apache许可证2.0授权的。您也可以检查 干杯看看 这是一个全新的GWT Mosaic库,具有非常好的动
FX.fadeOut(thisWidget)
的内容来替换thisWidget.setVisible(false)
对于GWT,有什么可靠的、小的东西可以做这种简单的事情吗?我正在编写一个非开源的商业应用程序。签出,一个用于GWT的JQuery克隆。“效果”类的文档如下所示。
它是根据Apache许可证2.0授权的。您也可以检查
干杯看看
这是一个全新的GWT Mosaic库,具有非常好的动画效果。我只需要淡入淡出效果。所以我没有使用图书馆。 这是实现这些效果的代码
private void fadeIn(final Element el) {
final int size = 11;
Timer timer = new Timer() {
private int counter = 0;
@Override
public void run() {
if (counter == size) {
cancel();
return;
}
double opacity = (double) (counter) / 10;
el.getStyle().setOpacity(opacity);
counter++;
}
};
timer.scheduleRepeating(100);
}
private void fadeOut(final Element el) {
final int size = 11;
Timer timer = new Timer() {
private int counter = 0;
@Override
public void run() {
if (counter == size) {
cancel();
return;
}
double opacity = (double) (10 - counter) / 10;
el.getStyle().setOpacity(opacity);
counter++;
}
};
timer.scheduleRepeating(100);
}
gwt fx是我能找到的最轻的重量库。它具有可接受的灵活性,代码简单且易于扩展。