Skip to content

Commit

Permalink
add a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp committed Jul 28, 2021
1 parent 6546de7 commit 975c118
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/example/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function App() {
className="box"
initial={{ x: 0, rotate: 0 }}
animate={{ x: 400, rotate: 180 }}
transition={{ type: 'spring', stiffness: 50, delay: 2 }}
transition={{ type: 'spring', stiffness: 50 }}
/>
</div>
</>
Expand Down
35 changes: 29 additions & 6 deletions packages/tracer-motion/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="demo.gif" height="200px"/>
<img src="https://raw.githubusercontent.com/siddharthkp/tracer-motion/main/packages/tracer-motion/demo.gif" height="200px"/>
<br><br>
<b>Visual debugger for framer-motion</b>
<br><br>
Expand All @@ -9,20 +9,43 @@

&nbsp;

[Demo on CodeSandbox](https://codesandbox.io/s/tracer-motion-x4570)

&nbsp;

#### install

```
npm install tracer-motion
npm install tracer-motion --save-dev
# or
yarn add tracer-motion --dev
```

&nbsp;

#### usage

```js
const repo = require('tracer-motion')

// add how to use
```diff
import { motion } from 'framer-motion';
+ import { tracer } from 'tracer-motion';

function App() {
return (
<>
<div>
- <motion.div
+ <tracer.div
className="box"
initial={{ x: 0, rotate: 0 }}
animate={{ x: 400, rotate: 180 }}
transition={{ type: 'spring', stiffness: 50 }}
/>
</div>
</>
);
}
```

&nbsp;
Expand Down

0 comments on commit 975c118

Please sign in to comment.