Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vitaliy-bobrov/ion-ripple

Ripple effect for Ionic
https://github.com/vitaliy-bobrov/ion-ripple

ionic ripple

Last synced: 16 days ago
JSON representation

Ripple effect for Ionic

Awesome Lists containing this project

README

        

ion-ripple
==============

[![Bower version](https://badge.fury.io/bo/ion-ripple.svg)](https://badge.fury.io/bo/ion-ripple)
[![npm version](https://badge.fury.io/js/ion-ripple.svg)](https://badge.fury.io/js/ion-ripple)
[![npm](https://img.shields.io/npm/dt/ion-ripple.svg)](https://github.com/vitaliy-bobrov/ion-ripple)

A pure javascript (no polymer, no jQuery) Ionic directive that adds a Google Material Design ripple effect when clicked or touched based on [angular-ripple](https://github.com/nelsoncash/angular-ripple).

## Bower

```bash
bower install --save ion-ripple
```

## NPM

```bash
npm install --save ion-ripple
```

## Usage

Include the script in your HTML

```html


```

Also you can import ripple `scss` file into your app styles

`@import '../lib/ion-ripple/ion-ripple';`

There are some default *SASS* variables available that can be overriden:

```
$ion-ripple-color: #fff !default;
$ion-ripple-duration: .45s !default;
```

Then include `ionMDRipple` in your module dependencies

```js
angular.module('app', ['ionMDRipple']);
```

Then add the `ion-ripple` attribute to elements

```html
Ripple!
```

Also you can specify ripple effect color with `ion-ripple-color` attribute.

```html
Ripple!
```