Efeito de ripples baseado no Material Design.

Overview

Ripple Effect

MIT license Website shields.io

Efeito de ripples baseado no Material Design feito com CSS, JavaScript e jQuery

Esse efeito utiliza seletores do jQuery e manipulação do DOM para obter um efeito extremamente preciso em relação ao original.

Demo

forthebadge

Como usar

forthebadge

Classe Efeito
md-ripples Adiciona o efeito ao componente
ripples-light Muda a cor do efeito para sua versão clara
ripples-dark (padrão) Muda a cor do efeito para sua versão escura
Nota: as classes ripples-light e ripples-dark só funcionam em conjunto com a classe md-ripples.

Mudando os padrões do efeito

  • Exemplo:
.md-ripples . ripple {
    background-color: #21D4FD;
    opacity: .32;
}

Nesse exemplo, todo elemento que tiver o efeito adicionado com .md-ripples terá o efeito da cor #21D4FD.

Criando classes personalizadas

  • Exemplo:
.ripples-blue .ripple {
    background-color: #B721FF;
    opacity: .32;
}

Nesse exemplo, o elemento que tiver a classe .ripples-blue terá o efeito da cor #B721FF.

Nota: a opacidade padrão é .16 e sua alteração é opcional.

Instalando no seu projeto

forthebadge

Você pode realizar a instalação das seguintes maneiras:

  1. Utilizando o npm
npm install @gabrielfins/ripple-effect
  1. Utilizando o yarn
yarn add @gabrielfins/ripple-effect
  1. Baixando os arquivos

Acesse o site de demonstração, vá até a seção "Adicione ao seu projeto" e clique no botão "Baixar" para fazer o download apenas dos arquivos necessários. Ou baixe diretamente do repositório.

Adicionando ao seu projeto

  1. Instalando com npm ou yarn

Após realizar a instalação, basta importar o pacote para o arquivo.

import "@gabrielfins/ripple-effect";
  1. Ao baixar os arquivos

Por esse método, basta adicionar a tag a seguir em qualquer lugar na tag <head> ou <body> do seu documento html.

<script src="ripples.js"></script>

Criado e mantido por Gabriel Figueredo

You might also like...

solid material ui port (ported from blazor port)

solid-material-ui solid material ui port (porting from blazor port) In preparation for solid hack Turbo Mono-repository is used for component package

Apr 30, 2022

A quick start Create React App template with react-router-dom, material-ui, gh-pages and firebase

A quick start Create React App template with react-router-dom, material-ui, gh-pages and firebase. With google authentication, routing and deployment capabilities built in.

Feb 22, 2022

Projeto desenvolvido em Angular e Material, para conclusão do curso de extensão em Java

EmpresaFront This project was generated with Angular CLI version 13.0.4. Development server Run ng serve for a dev server. Navigate to http://localhos

Mar 18, 2022

🍰 An extensible, layer based shader material for ThreeJS

🍰 An extensible, layer based shader material for ThreeJS

lamina 🍰 An extensible, layer based shader material for ThreeJS These demos are real, you can click them! They contain the full code, too. 📦 More ex

Jan 6, 2023

Opinionated Next.JS Boilerplate with TypeScript and Material-UI

Next.JS Boilerplate This is an opinionated Next.js boilerplate, with: Fully typed with TypeScript. Style/Theme engine and Icons from Material UI. Code

Jun 28, 2022

This project is an educational asset demonstrating the use of AWS amplify, Graphql API, Appsync, Material UI and amazon cognito. T

This project is an educational asset demonstrating the use of AWS amplify, Graphql API, Appsync, Material UI and amazon cognito. T

This project is an educational asset demonstrating the use of AWS amplify, Graphql API, Appsync, Material UI and amazon cognito. This project belongs to Black bird and this repo will remain dormant until final decision.

Oct 12, 2022

Course material for a ~10 hours introductionary course for Julia. Topics: Introduction, Parallel Programming, Data Science

Development We use Franklin.jl to generate the lecture material. To do so, simply activate the environment, use Franklin and run the local server: act

Dec 15, 2022

Simple material-style text inputs

Material-style inputs for Bootstrap 4 View Codepen: ralphvk/pen/LXpomR Add material-style inputs to your project. Include Bootstrap and jQuery First,

May 13, 2021

Angular material date-fns adapter (Support jalali)

Angular material date-fns adapter (Support jalali) What is this? This library provides a custom DateAdapter for the Angular Material Datepicker compon

Dec 3, 2022
Comments
  • code correction

    code correction

    hello, i am currently using your jquery ripple effect ...

    i found an error in your code:

    image

    can you please correct this? thanks.

    change from:

    $(document).on("pointerup mouseleave dragleave touchmove touchend touchcancel", ".md-ripples", function() {
        const ripples = $(this).find(".ripple");
        if (ripples.lenght != 0) {
            ripples.animate({opacity: 0}, 600, function() {
                ripples.remove();
            });
        }
    });
    

    change to:

    $(document).on("pointerup mouseleave dragleave touchmove touchend touchcancel", ".md-ripples", function() {
        const ripples = $(this).find(".ripple");
        if (ripples.length != 0) {
            ripples.animate({opacity: 0}, 600, function() {
                ripples.remove();
            });
        }
    });
    
    opened by camilord 1
  • [Feature Request] - Remove Jquery Dependency

    [Feature Request] - Remove Jquery Dependency

    Nice project, but I believe it's worth removing jquery if it's not super hard, it will greatly decrease the overall size of your lib. Most jquery functions have javascript equivalent nowdays. Good luck.

    opened by katriellucas 0
Releases(v1.0.5)
Owner
Gabriel Figueredo
Técnico em TI, programador frontend, designer de interfaces e designer gráfico. Cursando Sistemas da Informação na Unigranrio.
Gabriel Figueredo
Projeto desenvolvido no ignite - Baseado em DT Money

Projeto My Wallet - Baseado no Dt Money Projeto prático na trilha de React - Ignite Sobre Instalação Sobre Aplicação abrangendo diversos conceitos e f

Maurício L S Filho 3 Mar 15, 2022
Material Design implemented in Web Components (Custom Elements v1)

Material Web Components Material Design implemented in Web Components (Custom Elements v1) https://dannymoerkerke.github.io/material-webcomponents/ Ge

Danny Moerkerke 110 Nov 14, 2022
Design-focused web3 modal based on Material UI

@buildship/web3-login (beta) This is a design-focused web3 wallet connecting modal for React based on Material UI. It supports Metamask, WalletConnect

Buildship 25 Jan 1, 2023
🖼️ Bringing Material Design 3 to the Astro Blog. [WIP]

??️ Gumori You [WIP] Bringing Material Design 3 to the Astro Blog. ?? Contributing If you're interested in contributing to Gumori You, pls read the fo

!mportantImport 4 Oct 16, 2022
MUI Core is a collection of React UI libraries for shipping new features faster. Start with Material UI, our fully-loaded component library, or bring your own design system to our production-ready components.

MUI Core MUI Core contains foundational React UI component libraries for shipping new features faster. Material UI is a comprehensive library of compo

MUI 83.6k Dec 30, 2022
Bootstrap 5 & Material Design 2.0 UI KIT

Bootstrap 5 UI KIT - 700+ components, plain JavaScript, MIT license, simple installation. MDB is a collection of free Bootstrap templates, themes, des

MDBootstrap 22.9k Dec 30, 2022
Fully controllable vanilla-js material design ripple effect generator.

Fully controllable vanilla-js material design ripple effect generator. This can be used with any JavaScript framework and/or any CSS framework. Demo I

71 Dec 16, 2022
The PatternFly Design Kit is a Sketch library used for creating PatternFly accurate design mockups

PatternFly Design Kit The PatternFly Design Kit is a collection of Sketch assets that make it easy for designers to create high-fidelity design mockup

PatternFly 44 Jan 2, 2023
A customizable lightweight Alert Library with Material UI and awesome features.

SoloAlert A customizable lightweight Alert Library with Material UI and awesome features. view soloalert on npm : https://www.npmjs.com/soloalert Inst

Arnav Kumar 21 Nov 30, 2022
Algorithm visualizer made with React, Material UI and P5JS.

Made with React, P5JS and Material UI. Link https://andresrodriguez55.github.io/algorithmsVisualizer/#/ Description The purpose of doing this was to l

Andres Arturo Rodriguez Calderon 31 Nov 22, 2022