Custom properties

var names = ['jeremy','katie','rich','helen','trys','chris'];
var name = names[Math.floor(Math.random() * names.length)];
document.querySelector('.masthead').classList.add(name);

--

--

--

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ReciPal: A First Chrome Extension

Node-RED: Creating a custom node using TypeScript

Databinding Observable for Jetpack Compose

Understanding React components

Exploring ActionController::Responder

Advanced Javascript Topics: Reference Type, Context & Instantiation

//platform.twitter.com/widgets.js from Twitter https://twitter.com/techandgeek

Becoming an Open-Source Author

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeremy Keith

Jeremy Keith

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

More from Medium

Why You Need A Design System (part 2)

From Global CSS to Component Library

Responsive Design Is More Than You Think

Design System in Frontend