Skip to content

Commit

Permalink
change default motion config to stiff preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Einstein committed Oct 23, 2017
1 parent eaaa6b2 commit e9408a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Wrap any element with a Tooltip and it will automatically position itself to eit
| tooltipStyles | {} | Change aspects of the tooltip's style |
| delay | 0ms | Delay before tooltip appears (in milliseconds) |
| toggleOnClick | false | Tooltip appears only after clicking on target element |
| motionConfig | {stiffness: 180: damping: 12}| Choose your own params [here](https://chenglou.github.io/react-motion/demos/demo5-spring-parameters-chooser/)|
| motionConfig | {stiffness: 210: damping: 20}| Choose your own params [here](https://chenglou.github.io/react-motion/demos/demo5-spring-parameters-chooser/)|
| padding | 16px | Minimum padding between edge of viewport and tooltip |
| offset | 8px | Offset between the tooltip and the tooltip's child |
| caretSize | 5px | Size of the tooltip's caret |
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class Tooltip extends React.Component {
padding: enums.padding,
caretSize: enums.caretSize,
motionConfig: {
stiffness: 180,
damping: 12
stiffness: 210,
damping: 20
}
}

Expand Down

0 comments on commit e9408a4

Please sign in to comment.