Skip to content

Instantly share code, notes, and snippets.

@Bamblehorse
Created April 11, 2018 21:08
Show Gist options
  • Save Bamblehorse/f3bfcff715679900ed4b124aa8f0bdc2 to your computer and use it in GitHub Desktop.
Save Bamblehorse/f3bfcff715679900ed4b124aa8f0bdc2 to your computer and use it in GitHub Desktop.
window.c = (type, text) => {
let e = document.createElement(type)
e.innerText = text
return e
}
window.i = (c) => document.body.insertBefore(c,document.body.firstChild)
i(c('style', `*{animation: FadeIn 0.5s} @keyframes FadeIn{0% {opacity: 0;transform: translateX(-20px);}}`))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment