Skip to content

Gives feedback to button clicks etc. Think Material style ripple effects.

License

Notifications You must be signed in to change notification settings

intothesource/feedback-animation

Repository files navigation

@intothesource/feedback-animation

Gives feedback to button clicks etc. Think Material style ripple effects.

Example

Imports

<script type="module"
	src="../feedback-animation.js">
</script>
<link rel="stylesheet"
  	type="text/css"
  	href="../feedback-animation.css">

Usage

<button class="example-button"
 	 data-its-feedback-animation='ripple'
 	 data-its-feedback-color="#81c784">
	<span>Test button</span>
</button>

Note: Using a containing element for button text is needed.

.example-button {
border: none;
outline: 0;
width: 80px;
height: 44px;
transition: background 300ms ease-in-out;
}

.example-button:hover {
  background: #c8e6c9;
}

.example-button:focus {
  background: #a5d6a7
}

About

Gives feedback to button clicks etc. Think Material style ripple effects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published