Skip to content

Instantly share code, notes, and snippets.

@flagrede
Last active June 27, 2020 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flagrede/8143023838936fb4b7cf81eae1c52d54 to your computer and use it in GitHub Desktop.
Save flagrede/8143023838936fb4b7cf81eae1c52d54 to your computer and use it in GitHub Desktop.
Zelda BOTW Part 1: Triangle
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