Coder Social home page Coder Social logo

bezenson / meeink Goto Github PK

View Code? Open in Web Editor NEW
33.0 2.0 4.0 8 KB

Material Design click effect

License: MIT License

CSS 38.59% HTML 20.48% JavaScript 40.93%
ink material css-animations demo jquery plugin jquery-plugin effects effect npm-package bower click

meeink's Introduction

MeeInk v1.0.0

MeeInk is a jQuery plugin which allows you to easily add material design ink effect to elements when you click them.

Plugin is based on CSS animation what give you good performance including mobile devices.

Demo

Check out demo page here.

Setup

Install with Bower

bower install MeeInk --save

Install with NPM

npm install meeink --save

Include scripts

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="jquery.mee-ink.js"></script>

Include styles

<link rel="stylesheet" href="mee-ink.css">

Initialize plugin

$(document).ready(function() {
    $('.btn').meeInk({
        // options
    });
});

Documentation

Plugin have several number of options which allows you to customize it as you want.

animationClass

animationClass: 'mee-ink-animated mee-ink-animation'

Class which triggers to start CSS animation.

elementClass

elementClass: 'mee-ink-el'

Class that is added to initialized element.

inkClass

inkClass: 'mee-ink'

Class for ink inside element with styles.

overflowHiddenClass

overflowHiddenClass: 'mee-ink-overflow-hidden'

Class will be added if your element don't have overflow: hidden.

positionRelativeClass

positionRelativeClass: 'mee-ink-pos-relative'

Class will be added if your element have position: static, because ink inside element positioned absolutely relative to element.

Issues

Found an issue? You are welcome here.

meeink's People

Contributors

bezenson avatar

Stargazers

Dashon 'DJ' Hawkins avatar Tou fik avatar  avatar Valentin Vichnal avatar Tudor Sava avatar Richard McKenna avatar Tuğrul Gedikli avatar Alexander Buch avatar Bruce Vang avatar Adriano Cahete avatar Денис avatar  avatar Kay Spiegel avatar Vladimir avatar Trần Quốc Việt avatar Russel Porosky avatar Irish avatar Ivan avatar Andrii Kasiun avatar David Baxter avatar Dave avatar Valentino Stoll avatar Raul Maciel avatar Radu Micu avatar Paweł Derehajło avatar ranendra adhikari avatar Denees avatar Loic avatar Stellar avatar  avatar Sasha Zmts avatar MeeThemes avatar  avatar

Watchers

 avatar  avatar

meeink's Issues

no click event

Hello, nice plugin, but when I use the plugin, the onclick event for an tag with class ".btn" is not fired anymore. Any idea?

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.