All Projects → samthor → Ripplejs

samthor / Ripplejs

Licence: mit
vanilla Material Design ripples

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ripplejs

Paper Ripple
Material Design Ripple effect in pure JS & CSS.
Stars: ✭ 55 (-68.93%)
Mutual labels:  material-design, ripple
Material Components Android
Modular and customizable Material Design UI components for Android
Stars: ✭ 13,128 (+7316.95%)
Mutual labels:  material-design
Materialtransitionanimation
Material Animations practice which is inspired from
Stars: ✭ 165 (-6.78%)
Mutual labels:  material-design
Materialnavigationview Android
📱 Android Library to implement Rich, Beautiful, Stylish 😍 Material Navigation View for your project with Material Design Guidelines. Easy to use.
Stars: ✭ 168 (-5.08%)
Mutual labels:  material-design
Ha client
It was the first Home Assistant fully native Android client from the times when there was no any official alternatives
Stars: ✭ 166 (-6.21%)
Mutual labels:  material-design
Minimal Todo
Material To-Do App
Stars: ✭ 2,051 (+1058.76%)
Mutual labels:  material-design
Motion Layout Playground
a collection of app examples demonstrating how to use motion layout
Stars: ✭ 164 (-7.34%)
Mutual labels:  material-design
Flutter kart
Sample flutter project based on udmey tutorial
Stars: ✭ 174 (-1.69%)
Mutual labels:  material-design
Admin Template
JSF responsive admin template based on Bootstrap and AdminLTE
Stars: ✭ 170 (-3.95%)
Mutual labels:  material-design
Hexo Theme Mdui
Stars: ✭ 167 (-5.65%)
Mutual labels:  material-design
Angular Search Experience
Algolia + Angular = 🔥🔥🔥
Stars: ✭ 167 (-5.65%)
Mutual labels:  material-design
React Selectrix
A beautiful, materialized and flexible React Select control
Stars: ✭ 166 (-6.21%)
Mutual labels:  material-design
Materialdesign2
A beautiful app designed with Material Design 2 using Android X.
Stars: ✭ 170 (-3.95%)
Mutual labels:  material-design
Ej2 React Ui Components
Syncfusion React UI components library offer more than 50+ cross-browser, responsive, and lightweight react UI controls for building modern web applications.
Stars: ✭ 166 (-6.21%)
Mutual labels:  material-design
Kross Hugo
Kross Creative Portfolio Template
Stars: ✭ 172 (-2.82%)
Mutual labels:  material-design
Jekyll Material Theme
A Jekyll Theme based on Material Design using Materialize.
Stars: ✭ 165 (-6.78%)
Mutual labels:  material-design
Xamarin.forms.backgroundkit
🔨 A powerful Kit for customizing the background of Xamarin.Forms views
Stars: ✭ 167 (-5.65%)
Mutual labels:  material-design
Materialdesign Svg
@mdi/svg Dist for Material Design Icons.
Stars: ✭ 166 (-6.21%)
Mutual labels:  material-design
Morpheus
A Flutter package for easily implementing Material Design navigation transitions.
Stars: ✭ 177 (+0%)
Mutual labels:  material-design
React Native Paper Dates
Smooth and fast cross platform Material Design date and time picker for React Native Paper
Stars: ✭ 173 (-2.26%)
Mutual labels:  material-design

rippleJS

Adds Material Design-style feedback ripples to your existing HTML without any dependencies. Show me the demos!

Usage

Include the rippleJS script (or use a local copy). Then, add elements with the rippleJS class within a parent element that has layout (aka, position: relative or position: absolute).

<button class="yourButton">
  Click Me
  <div class="rippleJS"></div>
</button>

<script async src="https://cdn.jsdelivr.net/npm/[email protected]"
    integrity="sha384-OlarGErerEgz/M7123pQTTek4pUIiR6t0BK09bTmWDi2cZYbv3VHrriaXDnA0Oup"
    crossorigin="anonymous"></script>
<!-- or if using ES6 modules -->
<script type="module">
  import 'https://cdn.jsdelivr.net/npm/[email protected]';
</script>

rippleJS adds handlers on document.body, so you don't need to register any new elements as you add them to the DOM. It supports touch and mouse events (even at the same time), and includes its own CSS.

Ripple Fill

By adding the fill class to a rippleJS element, the ripple will fill to rounded corners, good for form elements with fixed size. For example:

<div class="optHolder">
  <input type="checkbox" />
  <div class="rippleJS fill"></div>
</div>

Ripple Color

The default color is a transparent version of the current color (aka, the currentColor keyword). To change this default, add the following style rule:

.rippleJS .ripple {
  background: red;
}

You could also change it just for some elements:

.yourClassName .rippleJS .ripple {
  background: blue;
}

Or change the level of opacity:

.moreOpaque .rippleJS .ripple {
  opacity: 0.65;
}

Supports

Chrome, Safari, Firefox (all as of Dec 2014). Requires classList, so probably only supports IE10+.

Install

Instead of using rippleJS directly, you can fetch it using your favourite package manager:

$ bower install vanilla-ripplejs
$ npm install vanilla-ripplejs

You can either use ripple.min.js for a precompiled version to just drop into your site, or you could use lib.js included as a ES module. If you use lib.js, you'll need to include the CSS too—check out ripple.js for how this is done for the minified version, or you could just add the CSS to your regular styles.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].