src/TerminalObject/Dynamic/Animation.php
public function scroll($direction = 'right')
    {
        $this->setupKeyframes();

        $mapping = $this->getScrollDirectionMapping();

        if (!array_key_exists($direction, $mapping)) {
            return false;
        }

        $lines       = $this->getLines();
        $enter_from  = $mapping[$direction];
        $exit_to     = $mapping[$enter_from];

        $this->animate($this->keyframes->scroll($lines, $enter_from, $exit_to));
    }
public function scroll($direction = 'right')
    {
        $this->setupKeyframes();

        $mapping = $this->getScrollDirectionMapping();

        if (!array_key_exists($direction, $mapping)) {
            return false;
        }

        $lines       = $this->getLines();
        $enter_from  = $mapping[$direction];
        $exit_to     = $mapping[$enter_from];

        $this->animate($this->keyframes->scroll($lines, $enter_from, $exit_to));
    }
public function scroll ( $ direction = 'right' ) { $ this -> setupKeyframes ( ) ; $ mapping = $ this -> getScrollDirectionMapping ( ) ; if ( ! array_key_exists ( $ direction , $ mapping ) ) { return false ; } $ lines = $ this -> getLines ( ) ; $ enter_from = $ mapping [ $ direction ] ; $ exit_to = $ mapping [ $ enter_from ] ; $ this -> animate ( $ this -> keyframes -> scroll ( $ lines , $ enter_from , $ exit_to ) ) ; }
Scroll the art

@param string $direction
@return bool
Scroll the art