What effects libraries are available for GWT for commercial use?

前端 未结 4 1838
栀梦
栀梦 2021-01-07 11:27

I\'m looking for an effects library that I can drop in to my existing GWT app really, really easily. I want to add the library to my build path and then start writing thing

相关标签:
4条回答
  • 2021-01-07 12:04

    Take a look to GWT-Mosaic2g

    It's a complete new GWT-Mosaic library, with really nice animation effects.

    0 讨论(0)
  • 2021-01-07 12:06

    You can also check http://code.google.com/p/gwt-fx/

    Cheers

    0 讨论(0)
  • 2021-01-07 12:07

    I needed just fade in and fade out effects. So I didn't use a library. This is the code doing these effects.

        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);       
    }
    
    0 讨论(0)
  • 2021-01-07 12:08

    Check out GQuery, a JQuery clone for GWT. The docs for the effects class are here. It is licensed under the Apache License 2.0.

    0 讨论(0)
提交回复
热议问题