Skip to content

Instantly share code, notes, and snippets.

const docReady = (fn) => {
document.readyState === 'complete' || document.readyState === 'interactive' ? setTimeout(fn, 1) : document.addEventListener('DOMContentLoaded', fn);
}
docReady(function() {
});
@ronaldgreeff
ronaldgreeff / HTML base
Created March 26, 2021 16:03
Good base for html template - removes margin and padding from tags; sets defaults for font size and display, line-heights and some more
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
body {
background: linear-gradient(45deg, #16a596, #1f2d44, #e4566e);
background-size: 600% 600%;
height: 100%;
-webkit-animation: animbackground 30s ease infinite;
-moz-animation: animbackground 30s ease infinite;
animation: animbackground 30s ease infinite;
}