PHP code example of loveorigami / yii2-scrollup-widget

1. Go to this page and download the library: Download loveorigami/yii2-scrollup-widget 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/ */

    

loveorigami / yii2-scrollup-widget example snippets


 
	 		
use lo\widgets\scrollup\ScrollUp;
 
ScrollUp::widget([
	'theme' => ScrollUp::THEME_IMAGE,
	'themeDir' => '@path/to/our/theme', // if you want customization theme css file.
	'options' => [
		'scrollText' => "To top", // Text for element
		'scrollName'=> 'scrollUp', // Element ID
		'topDistance'=> 400, // Distance from top before showing element (px)
		'topSpeed'=> 3000, // Speed back to top (ms)
		'animation' => ScrollUp::ANIMATION_SLIDE, // Fade, slide, none
		'animationInSpeed' => 200, // Animation in speed (ms)
		'animationOutSpeed'=> 200, // Animation out speed (ms)
		'activeOverlay' => false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
	]
]);


$ php composer.phar