Shows some of the things reflex.js does.
First 3 images with class "reflex" only, last 3 with "idistance?? iheight?? iopacity?? iborder? icolor??????" ...









Images used are copyrighted and are used for demonstration only.
Download reflex.js and include it into your webpage.
<script type="text/javascript" src="reflex.js"></script>
To get the effect just add a class="reflex" to the image (minimum dimension: 32x32).
The needed vertical space of the canvas element will grow by the height of the reflection, plus the height of the distance.
If you want flexibility, use "cvi_reflex_lib.js" instead of "reflex.js". You can make your images respond to user actions (e.g. changing one or more options when the image is hovered over).
cvi_reflex.defaultTilt = 'none'; //STR 'n|l|r'-'none|left|right'
cvi_reflex.defaultHeight = 33; //INT 10-100 (%)
cvi_reflex.defaultDistance = 0; //INT 0-100 (px)
cvi_reflex.defaultTransparency = 50; //INT 1-100 (%)
cvi_reflex.defaultBorder = 0; //INT 0-20 (px)
cvi_reflex.defaultColor = '#ffffff'; //STR '#000000'-'#ffffff'
cvi_reflex.defaultBoxmode = false; //BOOLEAN
cvi_reflex.add(image, options);cvi_reflex.add(document.getElementById("myimg"), { height: 25, distance: 10 });
cvi_reflex.modify(image, options);cvi_reflex.modify(document.getElementById("myimg"), { tilt: "left" });
cvi_reflex.remove(image);
In older browsers, the script degrades and your visitors won't notice a thing.
Please read the License before you download reflex.js 1.2
Please read the Frequently Asked Questions before you contact the author.
Version 1.2
The inspiration for the script came from apples Cover Flow™.
Please leave any comments at this contact formular.
reflex.js and cvi_reflex_lib.js are distributed under the Netzgestade Non-commercial Software License Agreement.
License permits free of charge use on non-commercial and private web sites only under special conditions (as described in the license).
This license equals neither "open source" nor "public domain".
There are also Commercial Software Licenses available.