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 this article? Leave a tip.

Handcrafted by Stammy for 19.08 years · Comments