Skip to content

Commit

Permalink
Document that fade-out duration can't be modified through the speedFa…
Browse files Browse the repository at this point in the history
…ctor
  • Loading branch information
devversion committed Feb 4, 2017
1 parent b48d2a9 commit 630cc8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/core/ripple/ripple-renderer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {ElementRef, NgZone} from '@angular/core';
import {ViewportRuler} from '../overlay/position/viewport-ruler';


/** Fade-in speed in pixels per second. Can be modified with the speedFactor option. */
export const RIPPLE_SPEED_PX_PER_SECOND = 170;

/** Fade-out speed for the ripples in milliseconds. This can't be modified by the speedFactor. */
export const RIPPLE_FADE_OUT_DURATION = 600;

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

Expand Down

0 comments on commit 630cc8c

Please sign in to comment.