Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
CSSgram: filtri Instagram sulle nostre immagini con un class

CSSgram, una semplice e piccola (<1kb gzipped) libreria CSS per ricreare gli effetti di Instagram sulle nostre immagini senza fare editing con programmi come Photoshop o GIMP.

Oggi vi mostro una risorsa che farà contenti non pochi blogger. Prima di tutto vediamo la compatibilità. Questa libreria usa i CSS Filter e CSS Blend Modes, che sono supportate dai seguenti browser:

  • Google Chrome: 43+
  • Mozilla Firefox: 38+
  • Internet Explorer: NO ( stupiti? 🙂 )
  • Opera: 32+
  • Safari: 8+
  • Edge: ok

Vediamo ora come usarla

  1. Scarichiamo la libreria CSSgram – Sito ufficiale
  2. Inseriamo la libreria CSSgram all’interno dell’head nel nostro progetto:
    <link rel="stylesheet" href="css/vendor/cssgram.min.css">
  3. Aggiungiamo la classe del filtro che vogliamo usare. Ecco un esempio:

<figure class="aden">
<img src="img.png" alt="" />
</figure>

Ecco tutte le classi disponibili

  • Aden: class="aden"
  • Reyes: class="reyes"
  • Perpetua: class="perpetua"
  • Inkwell: class="inkwell"
  • Toaster: class="toaster"
  • Walden: class="walden"
  • Hudson: class="hudson"
  • Gingham: class="gingham"
  • Mayfair: class="mayfair"
  • Lo-fi: class="lofi"
  • X-Pro II: class="xpro2"
  • 1977: class="_1977"
  • Brooklyn: class="brooklyn"

CSSgram aden
CSSgram reyes
CSSgram perpetua
CSSgram inkwell
CSSgram toaster
CSSgram walden
CSSgram hudson
CSSgram gingham
CSSgram mayfair
CSSgram lofi
CSSgram xpro2
CSSgram _1977
CSSgram brooklyn