Skip to content

Instantly share code, notes, and snippets.

@assassinave
Last active September 27, 2020 01:22
Show Gist options
  • Save assassinave/40e333b21e9fa988b8becf39fd3ea709 to your computer and use it in GitHub Desktop.
Save assassinave/40e333b21e9fa988b8becf39fd3ea709 to your computer and use it in GitHub Desktop.
Framer X - Display local image or video sources in Code Component
// If you want to place local images or videos to your Framer
// Example (not full code)
// Add this at top of .tsx file you're needing to add local images/videos
import { url } from "framer/resource";
// When adding them into your
render() {
return (
<video
src={url("../videos/wacky-stuff.mp4")}
width="320"
controls
/>
<img src={url("../images/images.png")}/>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment