spritespin A wrapper for Spritespin jQuery Plugin

  1. Requirements
  2. Usage
  3. Resources

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.

Requirements

Yii 1.1 or above (tested on 1.1.13)

Usage

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

Resources

1 0
3 followers
189 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Alfa Adhitya
Created on: Mar 1, 2014
Last updated: 9 years ago

Downloads

show all

Related Extensions