Skip to content

Instantly share code, notes, and snippets.

@jeongsd
Created May 11, 2018
Embed
What would you like to do?
css
function loadCss(filename) {
var cssNode = document.createElement("link");
cssNode.setAttribute("rel", "stylesheet");
cssNode.setAttribute("type", "text/css");
cssNode.setAttribute("href", filename);
document.getElementsByTagName("head")[0].appendChild(cssNode);
}
loadCss("https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment