James McGrath

In the thing I'm currently working on at Mamamia, the content for the page is coming from a WYSIWYG editor. The section of the page where it appears has a title that is planned to be hardcoded in to...
Published on Feb 09, 2020
Reading time: 1 minute
As far as I know, there wasn't any way to dynamically change the CSS properties of pseudo-elements. Now that CSS custom properties are supported in the latest browsers, there are two ways in which...
Published on Feb 02, 2020
Reading time: 1 minute
Maybe you have heard that "eval is evil?" If you haven't take a few minutes to read <a href="https://humanwhocodes.com/blog/2013/06/25/eval-isnt-evil-just-misunderstood/">eval() isn't evil, just...
Published on Jan 27, 2020
Reading time: 2 minutes
Several years ago I was tasked with making a font resize function for a website I was working on. At that time I made it in jQuery. That version can be seen on codpen Font Resizer
Published on Nov 04, 2019
Reading time: 5 minutes
I enjoy the challenge of making single div things using just CSS to make it. Over the past few years I made a few country flags.
Published on Sep 28, 2019
Reading time: 1 minute