Skip to content

Instantly share code, notes, and snippets.

@ibare
Created April 26, 2019 08:56
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 ibare/b8599907b002129c17172c035f96e6ec to your computer and use it in GitHub Desktop.
Save ibare/b8599907b002129c17172c035f96e6ec to your computer and use it in GitHub Desktop.
깜빡이는 원
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