jQuery & WordPress: how to avoid common conflicts

JQuery is great for WordPress. It’s a clear and effective library for Javascript. It gives WordPress some of its best functionality. Custom JQuery code can be added to plugins and themes. This code can make something work great but kill some other standard...

Title Case Regular Expression

You feed in a string to a regular expression and it comes out in Title Case. As Perl, PHP and ASP use regular expressions, this expression is useful with a little tinkering: $x =~ s/(\w+)/\u\L$1/g; $x =~ s/(\sand|of\s)/\L$1/ig if ($x =~ /\sand|of\s/i);...
CSS: An Expanding Circle Transition

CSS: An Expanding Circle Transition

I wanted to do a transitio neffect with the following elements: Layers with backgrounds are reveled within an expanding circle. Inside of each layer there can be a background or text as well as animation effects (eg. the shrinking number) The transition delay can be...
Color Picker

Color Picker

This colour wheel allows users to choose the braces elastics they want. It’s a fun little tool. More than that, it’s a ranking magnet. A ranking magnet? Google and others assess how long a user is on a web page. This gives people a chance to experiment...
CSS: A Filter on Parallax

CSS: A Filter on Parallax

I wanted to do a scrolling effect with the following elements: As the image scrolls down, a CSS filter is applied. In this case, it’s a black-and-white filter to wash out the colour Other options include a sepia filter, a blur filter, a zoom filter See the Pen...