Last active
February 18, 2021 16:31
-
-
Save addisonschultz/c73d1aed04ebb84517a1890f8f8f9d56 to your computer and use it in GitHub Desktop.
A quick utility file to add CSS to a Framer Project
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
function Add() { | |
let css = document.createElement("link"); | |
css.href = "path/to/styles.css"; | |
css.id = "framerCustomCSS"; | |
document.head.appendChild(css); | |
} | |
if ( | |
document.getElementById("framerCustomCSS") | |
) { | |
console.log("Loading CSS..."); | |
Add(); | |
console.log("CSS Loaded!"); | |
} else { | |
console.log("CSS already loaded!"); | |
return; | |
} | |
Add(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment