scrolltop An handy jquery scrolltop script animated.

  1. Install
  2. Requirements
  3. Usage
  4. Github

This widget do this:

$('html, body').animate({ scrollTop : 0 }, 'slow');

Install

Copy ScrollTop.php script in /protected/extensions folder.

Requirements

Yii 1.1 or above

Usage

Simplest way to use this widget:

<?php $this->widget('ext.ScrollTop'); ?>

Configurable

<?php $this->widget('ext.ScrollTop',array(
        'label' => 'Go on top',
        'speed' => 'slow'
)); ?>

Github

https://github.com/sensorario/scrolltop

9 0
21 followers
1 075 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: sensorario
Created on: Oct 12, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions