All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sencha.gxt.fx.client.animation.FadeOut Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
package com.sencha.gxt.fx.client.animation;

import com.sencha.gxt.core.client.dom.XElement;

public class FadeOut extends BaseEffect {

  public FadeOut(XElement el) {
    super(el);
  }

  public void onComplete() {
    element.setVisible(false);
    element.getStyle().setProperty("opacity", "");
  }

  @Override
  public void onUpdate(double progress) {
    element.getStyle().setOpacity(Math.max(1 - progress, 0));
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy