-
-
Save flagrede/8143023838936fb4b7cf81eae1c52d54 to your computer and use it in GitHub Desktop.
Zelda BOTW Part 1: Triangle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { motion } from "framer-motion"; | |
type Props = { | |
animateParams: { | |
rotate: string; | |
x: [number, number, number]; | |
y: [number, number, number]; | |
}; | |
className: string; | |
}; | |
const Triangle: React.FC<Props> = ({ animateParams, className }) => ( | |
<motion.div | |
initial={false} | |
animate={animateParams} | |
transition={{ | |
loop: Infinity, | |
ease: "easeIn", | |
duration: 1, | |
}} | |
className={className} | |
/> | |
); | |
export default Triangle; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment