🕺
Raising kids and websites
I’m a front-end web developer and partner at @fromtheoutfit, and my rap-name is Vanilla Fudgey Swirls.
- Beverly, MA
- https://marcamos.com
Pinned Loading
-
fromtheoutfit/fadable
fromtheoutfit/fadable PublicFade in elements as they move into view, at both the bottom and top of the viewport.
-
Simple, accessible, nav menu system ...
Simple, accessible, nav menu system that is keyboard friendly. Demo here: https://codepen.io/marcamos/pen/zYEXegV 1const navButtonEl = '[aria-controls^="nav-menu-"]';
2const navMenuEl = '[id^="nav-menu-"]';
3const navButtons = Array.from(document.querySelectorAll(navButtonEl));
4const navMenus = Array.from(document.querySelectorAll(navMenuEl));
5const closeNavMenu = () => {
-
Lazy-loading polyfill; it covers the...
Lazy-loading polyfill; it covers the various ways you can use an <img> element, <picture> elements, and CSS background images … but it gets out of the way if the environment natively supports lazy-loading. 1// Use #1: <img> element using src and srcset:
2// <img data-lazy-srcset="/path/to/image-2x.jpg 2x"
3// data-lazy-src="/path/to/image-1x.jpg"
4// alt="TODO" width="TODO" height="TODO" loading="lazy" />
5//
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.