Framer motion component lags for me

i was creating a custom cursor element and i found this implementation -
https://codesandbox.io/p/sandbox/framer-motion-mouse-position-2b4sd?file=%2Fsrc%2FApp.js%3A78%2C11

i copy pasted the same code and when i run it , its not smooth at all and its laggy

i am using
bun and latest next js ,

my project is this links's component copy pasted and nothing else and it lags like this
Was this page helpful?