<?php
/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 */

namespace humhub\widgets;

/**
 * Simple FadeIn JsWidget
 * @since 1.2.2
 */
class FadeIn extends JsWidget
{
    /**
     * @inheritdoc
     */
    public $fadeIn = true;
    /**
     * @inheritdoc
     */
    public $jsWidget = 'ui.widget.Widget';
    /**
     * @inheritdoc
     */
    public $init = true;
    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();
        ob_start();
        ob_implicit_flush(false);
    }
    public function run()
    {
        $this->content = ob_get_clean();
        return parent::run();
    }
}
