Skip to content

Instantly share code, notes, and snippets.

@simonhermann
simonhermann / gist:71debcf08ad4b70d327b77f8f5c510f3
Created September 21, 2020 10:42 — forked from ayamflow/gist:b602ab436ac9f05660d9c15190f4fd7b
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
@simonhermann
simonhermann / lazyload.js
Created July 5, 2019 12:55 — forked from egstad/lazy.js
NUXT + Vanilla-lazyload
import LazyLoad from "vanilla-lazyload";
import utils from "./utils";
/* ==========================================================================
LAZYLOAD
==========================================================================
• Once an element enters viewport, load it up!
• Handles lazyloading images, iframes, scripts, etc...
• https://github.com/verlok/lazyload