Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick G NickGard

  • northern Oregon
View GitHub Profile
@NickGard
NickGard / safari-focus-polyfill.js
Last active Jun 30, 2022
Safari Focus Polyfill
View safari-focus-polyfill.js
(function() {
var capturedEvents = [];
var capturing = false;
var redirectedFocusTarget = null;
function getEventTarget(event) {
return event.composedPath()[0];
}
function captureEvent(e) {
View Animating the content attribute.markdown

Animating the content attribute

In most browsers this is just going to show the letter 'A' but in the latest version of Chrome it should animate between 'A' and 'B'.

Not sure how useful this might be in the future, but it seems pretty cool!

A Pen by Robin Rendle on CodePen.

License.