Example usage for com.google.gwt.query.client.css RGBColor BLACK

List of usage examples for com.google.gwt.query.client.css RGBColor BLACK

Introduction

In this page you can find the example usage for com.google.gwt.query.client.css RGBColor BLACK.

Prototype

RGBColor BLACK

To view the source code for com.google.gwt.query.client.css RGBColor BLACK.

Click Source Link

Usage

From source file:gwtquery.samples.client.AnimationsSample.java

License:Apache License

private void doColorAnimation() {
    $(".foo")/* w w w .j  a  v  a  2s .  c o  m*/
            .queue("colorQueue",
                    lazy().css(CSS.BACKGROUND_COLOR.with(RGBColor.RED)).dequeue("colorQueue").done())
            .delay(500, "colorQueue")
            .queue("colorQueue",
                    lazy().css(CSS.BACKGROUND_COLOR.with(RGBColor.BLACK)).dequeue("colorQueue").done())
            .delay(500, "colorQueue").queue("colorQueue", new Function() {
                @Override
                public void f() {
                    doColorAnimation();
                    $(".foo").dequeue("colorQueue");
                }

                @Override
                public void cancel(Element e) {
                    $(".foo").clearQueue().stop();
                }
            });

}