Simply put, CSSgram is a library for editing your images with Instagram-like filters directly using CSS. What we're doing is adding filters to the images, as well as applying color and/or gradient overlays via various blending techniques to mimic filter effects. This means less manual image processing and more fun filter effects on the web! We are using pseudo-elements (i.e. :before and :after) to create the filter effects, so you must apply these filters on a containing element (i.e. not a content-block like <img>. The recommendation is to wrap your images in a <figure> tag. If you use custom naming in your CSS architecture, you can add the .scss files for the provided styles within your project and then @extend the filter effects within your style definitions. Mixins allow for multiple filter arguments to be passed into your classes. This is useful for if you want to add filters in addition to the ones provided (i.e. add a blur).

Features

  • A tiny (<1kb gzipped!) library for recreating Instagram filters with CSS filters and blend modes
  • This library uses CSS filters and CSS blend modes
  • Supports Google Chrome and Mozilla Firefox
  • When using CSS classes, you can simply add the class with the filter name to the element containing your image
  • Mixins allow for multiple filter arguments to be passed into your classes
  • You can also add additional filters as arguments when using the library with mixins

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow CSSgram

CSSgram Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CSSgram!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries, JavaScript Image Recognition Software, JavaScript Image Processing Software, JavaScript Image Processing Libraries

Registered

2021-10-13