Shows some of the things slided.js does.
4 images with class = "slided ibgcolorXXXXXX" and different frame colors.




4 images with class = "slided ibgcolorXXXXXX igradientXXXXXX" and different gradient directions

no gradient

diagonally

horizontal

vertical

"noshadow nocircles"

"ishadow20"

"ishade01"

"ishade75"
Images used are copyrighted and are used for demonstration only.
Download slided.js and include it into your webpage.
<script type="text/javascript" src="slided.js"></script>
To make it look like a slide just add a class="slided" to the image (minimum dimension: 80x? / ?x80). To get an aspect ratio of 1:1 the larger picture dimension defines the width and height. Therefor the needed space of the canvas element will grow if the aspect ratio of the picture doesn't fit 1:1.
If you want flexibility, use "cvi_slide_lib.js" instead of "slided.js". You can make your images respond to user actions (e.g. changing one or more options when the image is hovered over).
cvi_slide.defaultShade = 50; //INT 0-100 (% opacity)
cvi_slide.defaultShadow = 40; //INT 1-100 (% opacity)
cvi_slide.defaultColor = 0; //STR '#000000'-'#ffffff' or 0
cvi_slide.defaultColor2 = 0; //STR '#000000'-'#ffffff' or 0
cvi_slide.defaultGradient = 'd'; //STR 'd|h|v'-'diagonally|horizontal|vertical'
cvi_slide.defaultNoshadow = false; //BOOLEAN
cvi_slide.defaultNocircles = false; //BOOLEAN
cvi_slide.add(image, options);cvi_slide.add(document.getElementById("myimg"), { shadow: 75, shade: 20 });
cvi_slide.modify(image, options);cvi_slide.modify(document.getElementById("myimg"), { noshadow: true });
cvi_slide.remove(image);
In older browsers, the script degrades and your visitors won't notice a thing.
Please read the License before you download slided.js 1.1
Please read the Frequently Asked Questions before you contact the author.
Version 1.1
Please leave any comments at this contact formular.
slided.js and cvi_slide_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.