Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent position reset when props change #28

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ script:
- npm run build
- npm run lint
- npm run docs

after_success:
- npm run test:coveralls

deploy:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default function FooComponent() {
| `delay` | `Number` | 3000 | Time until animation begins, in milliseconds. |
| `direction` | `"right"\|\|"left"` | `"right"` | Horizontal direction. |
| `childMargin` | `Number` | 10 | Horizontal margin between children, in pixels. |
| `resetOnPropsChange` | `Boolean` | true | Reset position when props change |
| `children` | React node | None | Children to render within the marquee. |
| `scrollWhen` | `"overflow"\|\|"always"` | `"always"` | Whether the text always scrolls, or only when the content overflows the container width. |

## Developing

Expand Down
357 changes: 0 additions & 357 deletions dist/bundle.esm.js

This file was deleted.

Loading