Skip to content

ahange/tracer-motion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



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

About

Visual debugger for framer-motion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%