Closed RevConcept closed 11 years ago
Unfortunately Caman can only handle a single image per instance at a time right now. It's definitely on the roadmap to handle exactly what you described.
There are some easy ways around this luckily. You should be able to do something like this:
var filterFunc = function () {
this.brightness(10);
this.contrast(30);
this.sepia(60);
this.saturation(-30);
this.render();
};
$("a.work img").each(function () {
Caman($(this).get(0), filterFunc);
});
Thanks...works great!
Is something like this possible? It's only effecting the first image on may page:
Caman("a.work img", function () { this.brightness(10); this.contrast(30); this.sepia(60); this.saturation(-30); this.render(); });
Thanks!