egradient Create Gradient Bakcground

  1. Requirements
  2. Usage
  3. Resources

Create a CSS gradient background

Requirements

...requirements of using this extension (e.g. Yii 1.1 or above)...

Usage

extract to protected/extentions

<?php $this->widget('ext.egradient.EGradient',
array(
'target'=>'#grad1'
));?>

<?php $this->widget('ext.egradient.EGradient',
array(
'target'=>'#grad2',
'color1'=>'#2AA737',
'color2'=>'#00703A'
));?>

<?php $this->widget('ext.egradient.EGradient',
array(
'target'=>'#grad3',
'color1'=>'#2AA737',
'color2'=>'#00703A',
'style'=>'toTop'
));?>

<div id="grad1" style="width:300px;height:100px;"></div>
<br />
<div id="grad2" style="width:300px;height:100px;"></div>
<br />
<div id="grad3" style="width:300px;height:100px;"></div>

Resources

1 0
4 followers
403 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Ahyo Haryanto
Created on: Oct 29, 2012
Last updated: 5 years ago

Downloads

show all

Related Extensions