Created
April 26, 2019 08:56
-
-
Save ibare/b8599907b002129c17172c035f96e6ec to your computer and use it in GitHub Desktop.
깜빡이는 원
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 * as React from "react" | |
import { Frame, useCycle } from "framer" | |
// Open Preview (CMD + P) | |
// API Reference: https://www.framer.com/api | |
export function BlinkingCircle() { | |
const [animate, cycle] = useCycle( | |
{ backgroundColor: "#ff2020" }, | |
{ backgroundColor: "#ffbc20" } | |
) | |
setTimeout(cycle, 1000) | |
return <Frame animate={animate} size={"100%"} radius={"50%"} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment