GithubHelp home page GithubHelp logo

jaunesarmiento / vague.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gianlucaguarini/vague.js

1.0 3.0 0.0 5.27 MB

Vague.js is an experimental script that allows you to blur any kind of html element thanks to the SVG filters

Home Page: http://gianlucaguarini.github.io/vague.js/

vague.js's Introduction

Vague.js is an experimental script that allows you to blur any kind of html element thanks to the SVG filters. This script is crossbrowser and it was tested on:

  • Firefox 10 +
  • Chrome 18 +
  • Safari 6.0 +
  • IE 7 +

DEMO

http://codepen.io/GianlucaGuarini/pen/Hzrhf

http://gianlucaguarini.github.io/vague.js/

Dependency

jQuery

USAGE

	var vague = $(yourelement).Vague({
		intensity:3 //blur intensity
	});
	vague.blur();

#API (public methods)

  • blur : blur the element selected.
  • unblur : unblur the element selected.
  • destroy : fires the unblur event and removes the svg filter from the DOM (whether it is needed)

#KNOWN ISSUES

  • currently the svg filters are not complitely supported by all the modern browsers http://caniuse.com/svg-html
  • currently on Opera 12 it doesn't work at all because it doesn't support SVG filters over HTML contents
  • on IE10 it doesn't work because IE still sucks

vague.js's People

Contributors

gianlucaguarini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.