Skip to content

Instantly share code, notes, and snippets.

View codeplusux's full-sized avatar
🏠
Working from home

Pablo codeplusux

🏠
Working from home
View GitHub Profile
import * as React from "react"
import { Quote } from "./canvas"
export function KanyeQuote() {
const [quote, setQuote] = React.useState("")
React.useEffect(() => {
fetch("https://api.kanye.rest/").then(response => {
response.json().then(json => {
setQuote(json.quote)
const data = Data({ left: Animatable(2), color: "#999" });
let isToggleOn = false;
export const Toggle: Override = () => {
return {
left: data.left,
background: data.color,
onTap() {
let leftValue = isToggleOn ? 2 : 28;
animate.easeOut(data.left, leftValue, { duration: 0.25 });