FancyBox3
FancyBox3

Extension yii for library FancyBox3

Installation
The preferred way to install this extension is through composer.

Either add

    "require": {
    "keygenqt/yii2-fancybox3": "*"
}
of your composer.json file.
Example
Open FancyBox3 Open url YouTube
Example code
    <?php FancyBox3::begin([

    'nameBtn' => 'Open FancyBox3',

    'btnOption' => [
        'class' => 'btn'
    ],
    'jsOption' => [
        'focus' => false,
    ]
]) ?>

Hello!

This is animated content! Cool, right?

<?php FancyBox3::end() ?>
    <?= FancyBox3::widget([

    'nameBtn' => 'Open url YouTube',
    'src' => 'https://www.youtube.com/watch?v=jZiWG-dcvew',

    'btnOption' => [
        'class' => 'btn'
    ],
    'jsOption' => [
        'focus' => false,
    ]
]) ?>
License FancyBox
fancybox is licensed under the GPLv3 license for all open source applications. A commercial license is required for all commercial applications (including sites, themes and apps you plan to sell).

More details here: Licenses
May 31, 2020