Skip to content

Commit 630cc8c

Browse files
committed
Document that fade-out duration can't be modified through the speedFactor
1 parent b48d2a9 commit 630cc8c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/lib/core/ripple/ripple-renderer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import {ElementRef, NgZone} from '@angular/core';
22
import {ViewportRuler} from '../overlay/position/viewport-ruler';
33

4-
4+
/** Fade-in speed in pixels per second. Can be modified with the speedFactor option. */
55
export const RIPPLE_SPEED_PX_PER_SECOND = 170;
6+
7+
/** Fade-out speed for the ripples in milliseconds. This can't be modified by the speedFactor. */
68
export const RIPPLE_FADE_OUT_DURATION = 600;
79

810
/**

src/lib/core/ripple/ripple.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class MdRipple implements OnChanges, OnDestroy {
5353
/**
5454
* If set, the normal duration of ripple animations is divided by this value. For example,
5555
* setting it to 0.5 will cause the animations to take twice as long.
56+
* A changed speedFactor will not modify the fade-out duration of the ripples.
5657
*/
5758
@Input('mdRippleSpeedFactor') speedFactor: number = 1;
5859

0 commit comments

Comments
 (0)