I wanted to use vanilla javascript to change the class of an SVG element. It was a bit trickier than I expected, but the answer is really simple.
Usually I change the class of some HTML element like this:
AS THE HEAD of a newish design studio, I spend a fair amount of time writing…
Pull quotes on the web are one of the vestigial elements from print design that I can’t quite figure out.
What are they even for, aside from decoration?
In a print layout, they can fill space to help the text flow fit properly into…
It was 1997. George Clooney was in theaters as the shittiest Batman ever.
In 2014, Jackie Balzer wrote an excellent piece for Smashing Magazine on using Sass to automatically manage the z-index of elements using lists.
z-index
If you know me, you may know I don’t like sticky headers. They deny content much-needed room to flourish, and more often than not they’re blaring brands and social call-to-actions. But this isn’t the main reason I don’t like them.
Four truths about input that have changed the way I look at the web.
The last decade has seen an explosion of new types of input. The pace of input innovation is like nothing we’ve seen before.
In the beginning you went to school to match a curriculum to your…