tracer-motion

1.1.0 • Public • Published



Visual debugger for framer-motion



Demo

 

install

npm install tracer-motion --save-dev

# or

yarn add tracer-motion --dev

 

usage

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>
    </>
  );
}

 

like it?

⭐ this repo

 

license

MIT © siddharthkp

Package Sidebar

Install

npm i tracer-motion

Weekly Downloads

9

Version

1.1.0

License

MIT

Unpacked Size

75.5 kB

Total Files

3

Last publish

Collaborators

  • siddharthkp