/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pulpcore.scene;

import pulpcore.Stage;

/**
 *
 * @author eric
 */
public class RevealTransition extends TransitionScene {

    protected void transitionStart() {
        //double origWidth = toSprite.width.get();
        //toSprite.width.set(0);
        this.getMainLayer().moveToTop(fromSprite);
        fromSprite.x.animateTo(-Stage.getWidth(), duration, easing);
    }

}
