CSS: An Expanding Circle Transition
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.
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); Enjoy!
Turning A List Of MySQL Rows Into A Serialized PHP string
Turn a list of rows of from MySQL into a serialized PHP result
CSS: A Filter on Parallax
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.
CSS and Javascript effect: A Misty Reveal
An example of how to make a transition effect that fades away.
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 feature. WordPress already includes JQuery. Here’s how to include your own. In […]