A fullscreen vid looks cool but could βοΈperformance.
Screenshot the start of the vid & use it as an img placeholder.
Set the vid opacity to 0 and put it above the img.
When it has loaded, bring its opacity back.
While the font is loading, the text is invisible. And then the text flashes in (FOIT).
To prevent that, use 'local("Arial")' - or a common font like Helvetica - to load a font that the user must have on their PC.
'font-display: swap' swaps your font in after it has loaded.
(4/8)
My top google fonts π Roboto, Open Sans, Merriweather, Raleway, Playfair Display, Montserrat.
Imgs & vids are often too bright to have text above. Use filter to darken them:
"filter: brightness(75%) contrast(115%)"
Add aria-hidden="true" to icons, and a description text for screen readers.
Bootstrap & Tailwind have a "sr-only" class.
Or add your own sr-only π: a11y-guidelines.orange.com/en/web/componeβ¦