src/helpers/Element.php
public static function imgReveal($visibleSrc, $hiddenSrc, $options = [])
    {
        $lines = [];

        $visibleOptions = ArrayHelper::remove($options, 'visible', []);
        Ui::addCssClasses($visibleOptions, ['visible', 'content']);
        $lines[] = Ui::img($visibleSrc, $visibleOptions);

        $hiddenOptions = ArrayHelper::remove($options, 'hidden', []);
        Ui::addCssClasses($hiddenOptions, ['hidden', 'content']);
        $lines[] = Ui::img($hiddenSrc, $hiddenOptions);

        Ui::addCssClasses($options, ['ui', 'reveal']);
        return Ui::tag('div', implode("\n", $lines), $options);
    }
public static function imgReveal($visibleSrc, $hiddenSrc, $options = [])
    {
        $lines = [];

        $visibleOptions = ArrayHelper::remove($options, 'visible', []);
        Ui::addCssClasses($visibleOptions, ['visible', 'content']);
        $lines[] = Ui::img($visibleSrc, $visibleOptions);

        $hiddenOptions = ArrayHelper::remove($options, 'hidden', []);
        Ui::addCssClasses($hiddenOptions, ['hidden', 'content']);
        $lines[] = Ui::img($hiddenSrc, $hiddenOptions);

        Ui::addCssClasses($options, ['ui', 'reveal']);
        return Ui::tag('div', implode("\n", $lines), $options);
    }
Generates an image reveal element @see http://semantic-ui.com/elements/reveal.html

@param string $visibleSrc the image source to be visible when render
@param string $hiddenSrc the image source to be hidden when render
@param array $options the tag options in terms of name-value pairs.

@return string the generated reveal tag