Yii 1.1: spritespin

- May 09, 2015
0 (0 votes)
Rate :
A Yii wrapper for Spritespin jQuery Plugin

ESpriteSpin is an extension of Yii Framework, which is wrapper for Spritespin. Spritespin is a jQuery plugin that is able to play sprite image animations. It takes an array of images or a stiched sprite sheet and plays them frame by frame like a flip book.

How to Use

  1. Extract the downloaded file to your application extensions directory
  2. place the following code inside your view file:
    $this->widget('ext.spritespin.ESpriteSpin', array(
        'id' => '360view',
        'frames' => array(
        'options' => array(
            'width' => 770,
            'height' => 391,
            'animate' => true,
            'loop' => false,
            'frameWrap' => true,
            'frameStep' => 1,
            'frameTime' => 500,
            'enableCanvas' => true

Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter

– Eric S. Raymond

Have a better explanation?

If you have comments about this post. Please write your comments below

No comments associated with this article