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, addPropertyControls, ControlType } from "framer" | |
export function SamplePlayer(props) { | |
const canvasRef = React.useRef(null) | |
const [isPlaying, setIsPlaying] = React.useState(false) | |
const audioRef = React.useRef(new Audio(props.audioFile)) | |
React.useEffect(() => { | |
if (props.audioFile) { |
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
{ | |
"name": "Framer Fullscreen Prototype", | |
"short_name": "Framer", | |
"description": "A fullscreen Framer prototype as PWA", | |
"start_url": "https://fullscreen-prototype.framer.website", | |
"scope": "https://fullscreen-prototype.framer.website", | |
"display": "fullscreen", | |
"orientation": "any", | |
"theme_color": "#ffffff", | |
"background_color": "#ffffff", |
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 type { ComponentType } from "react" | |
import { useState, useEffect } from "react" | |
import type { MotionValue, Transition } from "framer-motion" | |
import { | |
useScroll, | |
useVelocity, | |
useTransform, | |
useMotionValue, | |
animate, |
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 { addPropertyControls, ControlType } from "framer" | |
import { motion } from "framer-motion" | |
import { useEffect } from "react" | |
import { globalStore } from "./globals.ts" | |
// Learn more: https://www.framer.com/docs/guides/code-components/ | |
export default function ModalOpener(props) { | |
const { onEvent, propertyListener, requireAuth, style } = props | |
const [store, setStore] = globalStore() |