import type { ComponentType } from "react";
/* Rotation Example */
export function Rotate(Component): ComponentType {
return (props) => {
return (
<Component
{...props}
animate={{ rotate: 360 }}
transition={{ duration: 10, ease: "linear", repeat: Infinity }}
/>
);
};
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.