-
-
Save flagrede/9587f518c4cf7f8ca991c63a8144b75b to your computer and use it in GitHub Desktop.
Zelda BOTW Part 1: TrianglesBox
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 Triangle from "./Triangle"; | |
const TrianglesBox = () => ( | |
<> | |
<Triangle | |
animateParams={{ rotate: "-45deg", x: [0, -6, 0], y: [0, -6, 0] }} | |
className="zelda-botw-triangle-up absolute left-0 top-0 -mx-1" | |
/> | |
<Triangle | |
animateParams={{ rotate: "45deg", x: [0, 6, 0], y: [0, -6, 0] }} | |
className="zelda-botw-triangle-up absolute right-0 top-0 -mx-1" | |
/> | |
<Triangle | |
animateParams={{ rotate: "45deg", x: [0, -6, 0], y: [0, 6, 0] }} | |
className="zelda-botw-triangle-down absolute left-0 bottom-0 -mx-1" | |
/> | |
<Triangle | |
animateParams={{ rotate: "-45deg", x: [0, 6, 0], y: [0, 6, 0] }} | |
className="zelda-botw-triangle-down absolute right-0 bottom-0 -mx-1 z-10" | |
/> | |
</> | |
); | |
export default TrianglesBox; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment