Skip to main content

Bret Cameron

Writer and developer based in London. By day, I work for insurtech startup YuLife. By night, I write – mainly about JavaScript and web development.

Article

How to Recreate the Ripple Effect of Material Design Buttons

When I first discovered Material Design, I was particularly inspired by its button component. It uses a ripple effect to give users feedback in a simple, elegant way.

How does this effect work? Material Design’s buttons don’t just sport a neat ripple animation, but the animation also changes position depending on where each button is clicked.… Read article “How to Recreate the Ripple Effect of Material Design Buttons”

Article

Modifying Specific Letters with CSS and JavaScript

Changing specific characters can be a challenge in CSS. Often, we’re forced to implement our desired changes one-by-one in HTML, perhaps using the span element. But, in a few specific cases, a CSS-focused solution may still be possible. In this article, we’ll start by looking at some CSS-first approaches to changing characters, before considering a scenario where we need to turn to JavaScript.… Read article “Modifying Specific Letters with CSS and JavaScript”