-
-
Save naveenshaji/f64622a3a3aa3e68a44c to your computer and use it in GitHub Desktop.
Material Design Wave effect CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .waves-effect { | |
| position: relative; | |
| cursor: pointer; | |
| display: inline-block; | |
| overflow: hidden; | |
| user-select: none; | |
| transition: all 0.3s ease-out; | |
| } | |
| .waves-effect .waves-ripple { | |
| position: absolute; | |
| border-radius: 50%; | |
| width: 100px; | |
| height: 100px; | |
| margin-top: -50px; | |
| margin-left: -50px; | |
| opacity: 0; | |
| background: rgba(0, 0, 0, 0.2); | |
| background: radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%); | |
| transition: all 0.5s ease-out; | |
| transition-property: transform, opacity; | |
| transform: scale(0); | |
| pointer-events: none; | |
| } | |
| .waves-effect.waves-light .waves-ripple { | |
| background: rgba(255, 255, 255, 0.4); | |
| background: radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%); | |
| } | |
| .waves-effect.waves-classic .waves-ripple { | |
| background: rgba(0, 0, 0, 0.2); | |
| } | |
| .waves-effect.waves-classic.waves-light .waves-ripple { | |
| background: rgba(255, 255, 255, 0.4); | |
| } | |
| .waves-notransition { | |
| transition: none !important; | |
| } | |
| .waves-button { | |
| transform: translateZ(0); | |
| } | |
| .waves-button, | |
| .waves-button:hover, | |
| .waves-button:visited { | |
| white-space: nowrap; | |
| vertical-align: middle; | |
| cursor: pointer; | |
| border: none; | |
| outline: none; | |
| color: inherit; | |
| background-color: rgba(0, 0, 0, 0); | |
| font-size: 1em; | |
| line-height: 1em; | |
| text-align: center; | |
| text-decoration: none; | |
| z-index: 1; | |
| } | |
| .waves-button { | |
| padding: 0.85em 1.1em; | |
| border-radius: 0.2em; | |
| } | |
| .waves-button-input { | |
| margin: 0; | |
| padding: 0.85em 1.1em; | |
| } | |
| .waves-input-wrapper { | |
| border-radius: 0.2em; | |
| vertical-align: bottom; | |
| } | |
| .waves-input-wrapper.waves-button { | |
| padding: 0; | |
| } | |
| .waves-input-wrapper .waves-button-input { | |
| position: relative; | |
| top: 0; | |
| left: 0; | |
| z-index: 1; | |
| } | |
| .waves-float { | |
| box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12); | |
| } | |
| .waves-float:active { | |
| box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3); | |
| } | |
| .waves-block { | |
| display: block; | |
| } | |
| a.waves-effect .waves-ripple { | |
| z-index: -1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment