attribution.js Demo

Different examples of the attribution overlay. Click on the buttons or right-click on the images to see the attribution overlay.

Default License

Uses CC BY 4.0 and current year

Demo photo 2

Share-Alike License

Uses CC BY-SA 4.0

Non-Commercial No-Derivatives

Uses CC BY-NC-ND 4.0

Public Domain

Uses CC0 1.0 Public Domain Dedication

No Derivatives

Uses CC BY-ND 4.0

Non-Commercial Share-Alike

Uses CC BY-NC-SA 4.0 from 2019

Override attribution

Image data attributes:

  • data-license="CC0 1.0"
  • data-year="2019"
  • data-media-type="Illustration"
  • data-photographer="John Doe"
  • data-photographer-url="https://example.com/johndoe"

Disable social sharing

Use the following option in the constructor:
showSocial: false