PHP code example of damiandennis / yii2-scrollingblocks
1. Go to this page and download the library: Download damiandennis/yii2-scrollingblocks library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
damiandennis / yii2-scrollingblocks example snippets
namespace damiandennis\scrollingblocks;
echo ScrollingBlocks::widget([
'dataProvider' => $dataProvider,
'itemView' => '_view',
'wallOptions' => [
'itemWidth' => 200,
'offset' => 5,
'autoResize' => true,
'flexibleWidth' => '20%', //This can be determined by the responsive widths below.
],
'responsiveWidths' => [
'(max-width: 520px)'=>'100%',
'(min-width: 521px) and (max-width: 655px)'=>'50%',
'(min-width: 656px) and (max-width: 1000px)'=>'33%',
'(min-width: 1001px) and (max-width: 1199px)'=>'25%',
'(min-width: 1200px)'=>'20%',
]
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.