1.1.2 • Published 6 years ago

@intothesource/feedback-animation v1.1.2

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

@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
}
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago