Displaying Image Copyright / Credit Overlays With Vanilla JavaScript – Copy.js

Category: Javascript , Text | August 14, 2018
Author:danthom88
Views Total:568 views
Official Page:Go to website
Last Update:August 14, 2018
License:MIT

Preview:

Displaying Image Copyright / Credit Overlays With Vanilla JavaScript – Copy.js

Description:

Copy.js is a lightweight Vanilla JavaScript plugin that adds custom copyrights and source links to images as text overlays.

How to use it:

Include the copy.css in the header of the html document.

<link href="copy.css" rel="stylesheet">

Include the copy.js just before the closing body tag.

<script src="copy.js"></script>

Insert your image with custom copyright information as follow:

<copyimg src="1.jpg" 
         data-srcname="CSSScript" 
         data-srclink="http://CSSScript.Com">
</copyimg>

Changelog:

08/14/2018

  • Update attributes.

You Might Be Interested In:


Leave a Reply