![]() ![]() |
Filmed.js 1.2 allows you to add film strips and shadow to images on your webpages (alternatively: slided.js). It uses unobtrusive javascript to keep your code clean. It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, IE6+ and Safari. On older browsers, it'll degrade and your visitors won't notice a thing. CVI-lab: Get a fast impression of the effects and their illustration qualities. |
Include "filmed.js" into your webpage.
<script type="text/javascript" src="filmed.js"></script>
To make it look like a strip just add a class="filmed" 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_strip_lib.js" instead of "filmed.js". You can make your images respond to user actions (e.g. changing one or more options when the image is hovered over).
cvi_strip.defaultStrip = 100; //INT 1-100 (% opacity)
cvi_strip.defaultShine = 25; //INT 1-100 (% opacity)
cvi_strip.defaultShadow = 33; //INT 1-100 (% opacity)
cvi_strip.defaultColor = '#000000'; //STR '#000000'-'#ffffff'
cvi_strip.defaultNoshadow = false; //BOOLEAN
cvi_strip.defaultSoftshadow = false; //BOOLEAN
cvi_strip.add(image, options);
cvi_strip.add(document.getElementById("myimg"), { shadow: 75, shine: 20 });
cvi_strip.modify(image, options);
cvi_strip.modify(document.getElementById("myimg"), { strip: 90 });
cvi_strip.remove(image);
Shows some of the things "filmed.js" does.
4 images with class = "filmed icolorXXXXXX" and different strip colors.
4 images with class = "filmed istripXXX" and different transparency of the spot lights
25%
50%
75%
100%
"noshadow istrip50"
"ishadow50"
"ishine01"
"istrip50 icolor402000"
In older browsers, the script degrades and your visitors won't notice a thing.
Opera do not support printing of canvas.
Filmed.js is distributed under this LICENSE. 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.
Images used are copyrighted and are used for demonstration only.
cvi.netzgesta.de also visit CVI-lab, S5 Reloaded and AJAX-FilmDB