Last active
September 27, 2020 01:22
-
-
Save assassinave/40e333b21e9fa988b8becf39fd3ea709 to your computer and use it in GitHub Desktop.
Framer X - Display local image or video sources in Code Component
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
// 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