image reflection (horizontal or vertical)


/ Published in: JavaScript
Save to your folder(s)

<p>How to use: HTML:
&lt;img id="image" src="image.png" alt=""/></p>

<p>JavaScript:
add_reflection (document.getElementById ( 'image'), 1, 1, 0.1, 0); </p>

<p>As a result, the script wrap image in the div, ask him to the desired height and width and put reflection of image</p>

<p>PS Sorry for my english</p>

URL: http://blog.sjinks.org.ua/javascript/356-image-reflection-with-javascript/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.