HOW TO Quickie: Image Reflections

Reflection.js is a simple piece of javascript that can add some slick looking reflections to any image on your site. All you need to do is add class="reflect" to the image. If you are using the K2 WordPress theme you can call reflection.js and the requisite prototype.js (assuming you have uploaded it into the K2 » js folder) by adding the following to the top of header.php:

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prototype.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/reflection.js"></script>

Like it? Tweet it.

"HOW TO Quickie: Image Reflections" by @Stammy

Get new articles via email