JavaScript Library For Colorful Shadows for Your Images | cosha

Cosha lets you add colorful shades to your photos and this JavaScript library applies colored shadows to an image by cloning, blurring, and positioning the image behind the original image.

Easy Text Shadow With Long Shadow jQuery Plugin | jquery.longShadow

How to make use of it:

1. Install and import the Cosha as an ES module.

# Yarn
$ yarn add cosha

# NPM
$ npm i cosha --save
import cosha from 'cosha';

2. Or load the compiled JavaScript within the doc.

<script src="cosha.iife.js"></script>

3. Apply the Cosha to the picture inside the doc.

cosha({
  className: 'has-shadow'
});
// Add Image Here
<picture class="has-shadow">
  <source srcset="1.jpg 1200w, 1-800.jpg 800w, 1-400.jpg 400w" type="image/jpeg">
  <source srcset="1.webp 1200w, 1-800.webp 800w, 1-400.webp 400w" type="image/webp">
  // Add Image Here
</picture>

4. Customize the blur, brightness, and saturate filter capabilities.

cosha({
  className: 'has-shadow',
  blur: '5px',
  brightness: '125%',
  saturation: '110%'
});

5. Set the shadow size. Default: 0.

cosha({
  className: 'has-shadow',
  x: '5px',
  y: '5px'
});

Colorful & Blurred Shadows For Images, cosha Plugin/Github


See Demo And Download

Official Website(robinloeffel): Click Here

This superior jQuery/javascript plugin is developed by robinloeffel. For extra Advanced usage, please go to the official website.

Related Posts

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *