KoolImageView supports changing effect of opening and closing. To use this feature, you need to set effect property of KoolImageView instance to desired effect, for example: $kiv->effect="fading";
<?php
require $KoolControlsFolder."/KoolImageView/koolimageview.php";
$kiv = new KoolImageView("kiv");
$kiv->scriptFolder = $KoolControlsFolder."/KoolImageView";
$kiv->imageUrl = "../../Images/nv.jpg";
$kiv->bigImageUrl = "../../Images/niceview.jpg";
$kiv->description = "Beautiful Beach";
$kiv->styleFolder = $KoolControlsFolder."/KoolImageView/styles/inox";
$effect_select = ( isset($_POST["effect_select"]) ) ? $_POST["effect_select"] : "zooming";
$kiv->effect = $effect_select;
?>
<form id="form1" method="post">
<style type="text/css">
.box
{
float:left;
width:280px;
height:180px;
margin:10px;
padding:10px;
}
.focus
{
background:#DFF3FF;
border:solid 1px #C6E1F2;
height:140px;
width:195px;
padding-top:40px;
padding-left:85px;
}
.clear
{
clear:both;
}
#style_select
{
width:100px;
}
div.framepic { width:96px; height:69px; padding : 2px; vertical-align:middle;}
div.framepic1 { border : 2px dotted gray; width:100px; }
div.framepic2 { border : 2px dotted black ; width : 104px;}
div.framepic3 { border : 2px solid gray ; padding : 1px ; width : 108px;}
</style>
<div class="box focus">
<div class="framepic3">
<div class="framepic2">
<div class="framepic1">
<div class="framepic">
<?php echo $kiv->Render();?>
</div>
</div>
</div>
</div>
</div>
<div class="box">
Select effects:
<select id="effect_select" name="effect_select" onchange="submit();">
<option value="zooming" <?php echo ( $effect_select =='zooming') ? 'selected' : '' ;?> >Zooming</option>
<option value="fading" <?php echo ( $effect_select =='fading') ? 'selected' : '' ;?> >Fading</option>
</select>
</div>
<div class="clear"></div>
</form>