Git Product home page Git Product logo

filter.css's Introduction

filter.css

A couple CSS filter combinations to get you started.

ScreenShot

See live demo

Usage

  1. Add the filter.css file to your project.
  2. Link to the filter.css file.
<!-- In your <head> -->
<link rel="stylesheet" href="filter.css">
  1. Use a data-filter attribute in your markup to add a filter.
<!-- In your <body> -->
<div data-filter="Eureka"></div>

List of available data-filter names.

  • Eureka
  • Karl
  • Rocky
  • London
  • FlipFlop
  • Introvert
  • Butterfly
  • Gold
  • Copper
  • Silver
  • Night
  • LoFi

Or you can just grab individual filter styles on the demo page and use it in your own CSS file.

Also feel free to tweak the numbers to better match your image/content.

Browser support

The filters are currently just -webkit prefixed. Better support will be added. Firefox seems close.

filter.css's People

Contributors

simurai avatar

Stargazers

Weldhapi avatar Steven Hagen avatar  avatar Yasin ATEŞ avatar Mason Yekta avatar  avatar flyinguard avatar Anshul Negi avatar Jonathan Morales avatar Arafat Hossen avatar Maryam avatar Alexis H. Munsayac avatar  avatar Tan 'Proxy' Erdogan avatar Dronca Raul avatar Avery avatar 螃蟹 avatar wandergis avatar  avatar breeze avatar Amit Merchant avatar Andy avatar Dang Van Thanh avatar  avatar Lifen, Song avatar Joshua Rosato avatar Patrick Burris avatar  avatar Amit Patel avatar  avatar uolcano avatar Lesley avatar Cristian Radu avatar Anthony Fiorani avatar M Haidar Hanif avatar Kulachat Kena avatar Philippe Loctaux avatar Tim Nguyen avatar Angus H. avatar  avatar Bruno Rodrigues avatar Patrick Iwanicki avatar Lucas Bonomi avatar  avatar  avatar  avatar Matt avatar Melissa Keizer avatar Diederik avatar Brian Talbot avatar Johnie Hjelm avatar Tolga Ergin avatar  avatar Fabio Cencetti avatar Mateusz Bagiński avatar Tomasz Jakut avatar Jean Christophe Roy avatar Timothy Dang avatar Eren Hatırnaz avatar Doğukan Güven Nomak avatar Betul  avatar colt365 avatar Fan, Mengying avatar Vincent Ho avatar xieyimian avatar mehmet çatıkkaya avatar Chris Hart avatar 孙茂胤 (Sun, Maoyin) avatar Tsung-Shuan Liu avatar Rplus avatar Abdulaziz Alshetwi avatar Ali GÜNDOĞDU avatar Mucahit Tutuncu avatar Ender Ahmet Yurt avatar Leyla Kapi Kurtul avatar harpsealjs avatar James Pudson avatar  avatar Alex Sun avatar Yan Hong avatar Qingfeng avatar tt avatar Wenli Zhang avatar Adrian Shum avatar DeokHong Kim (a.k.a insanehong)  avatar Lance He avatar EGOIST avatar Mu-An Chiou avatar Takeru Suzuki avatar ianva avatar Jonathan Simcoe avatar Anderson Aguiar avatar Ruy Adorno avatar Michael Anthony avatar C2 avatar Vasiliy Bukharev avatar Noah Portes Chaikin avatar zspecza avatar Henry Snopek avatar 黄小明 avatar

Watchers

Alejandro Prieto avatar  avatar James Cloos avatar Michael Anthony avatar Yared Getachew avatar  avatar

filter.css's Issues

data-attribute or Class selector

How do you prefer to author your markup when adding a new filter?

<div class="MyClass" data-filter="Eureka"></div>

or

<div class="MyClass filter-Eureka"></div>

I'm thinking of using data-filter mostly because: Filters can't be mixed together and only one at the time is allowed. data-filter="Eureka Karl" wouldn't work.

Animation or Flexibility

There is a bug that breaks the animation/transition of CSS filters when the oder changes. See this Pen.

So until this is fixed we have to make a choice of:

  1. Keep it animatable
  2. Allow more flexibility with different filter orders. Resulting in a bigger variety of filters.

I tend to vote for option 2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.