项目作者: timlg07

项目描述 :
A recreation of the Material Design Button ripple effect.
高级语言: JavaScript
项目地址: git://github.com/timlg07/Material-Button.git
创建时间: 2020-10-16T13:56:18Z
项目社区:https://github.com/timlg07/Material-Button

开源协议:

下载


Material-Button

A recreation of the Material Design Button ripple effect.

This repository is based on the article “How to Recreate the Ripple Effect of Material Design Buttons” from Bret Cameron.

Demo

Live-demo of the latest state: git.tim-greller.de/btn.

Usage

  1. Include the files in your projects:
    1. <script src="https://tim-greller.de/git/btn/button.js"></script>
    2. <link rel="stylesheet" href="https://tim-greller.de/git/btn/button.css">
  2. Then you can create button elements with the class “ripple-button” and you can add individual styles like colouring and positioning.
    1. <button class="ripple-button">Press me!</button>