Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple yii extension for quick scrolling to the top/bottom of the page

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

TopBottom

A simple yii extension for quick scrolling to the top/bottom of the page.

This project uses jQuery.

You may use it like:

$this->widget('ext.topBottom.scroll');

or

$this->widget('ext.topBottom.scroll', array( 'minDepth'=>1000, 'minHeight'=>500, 'fadeInTime'=>700, 'fadeOutTime'=>700, 'opacity' => 0.2, // ('opacity' = 0 vs. 'opacity' != 0 => different behavior) 'scrollTopTime'=>1000, 'scrollBottomTime'=>1000, ));

'opacity' = 0 means that scrolling button that is no longer needed (up button when the user is at the top of the page; down button when the user is at the bottom of the page) just dosapear; 'opacity' != 0 means that the button just fade away, but do not disapear;

Something went wrong with that request. Please try again.