Skip to content

uran1980/yii2-scroll-to-top

Repository files navigation

Yii2 ScrollToTop button widget

Based on scrollToTop jQuery plugin.

screen-01

Installation

Composer

The preferred way to install this extension is through Composer.

Either run

php composer.phar require uran1980/yii2-scroll-to-top "dev-master"

or add

"uran1980/yii2-scroll-to-top": "dev-master"

to the require section of your composer.json

Usage

To activate this widget on all pages add this line to you project main layout ...\frontend\views\layouts\main.php before Yii endBody() block:

<?php echo uran1980\yii\widgets\scrollToTop\ScrollToTop::widget(); ?>

Author

Ivan Yakovlev, e-mail: [email protected]