Accessibility is where the industry is going; you can either get on board or fall behind
This can become a talking point of our product
And be a way of leading us to better UX for all
Accessibility is where the industry is going; you can either get on board or fall behind
This can become a talking point of our product
And be a way of leading us to better UX for all
Accessibility is where the industry is going; you can either get on board or fall behind
This can become a talking point of our product
And be a way of leading us to better UX for all
😍
body {
--primary-theme-color: lemonchiffon;
transition: --primary-theme-color 1s ease-in-out;
}
body.night-theme {
--primary-theme-color: goldenrod;
}
body {
display: layout('masonry');
}
.bubble {
--circle-color: blue;
background-image: paint('circle');
}
// create observer
let observer = new IntersectionObserver(onChange);
function onChange(changes) {
changes.forEach(change => {
// take image url from `data-src` attribute
change.target.src = change.target.dataset.src;
// stop observing the current target
observer.unobserve(change.target);
}
}
// convert node list to array
const imgs = [ ...document.querySelectorAll('.lazy') ];
// observe each image
imgs.forEach(img => observer.observe(img));