Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

image-panel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-panel

Minimalist image viewer web component.

  • 0.3.3-a
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

image-panel

Yes this is another image viewer / photoframe / thing. Here's a few reason's this one deserves to exist:

  • It's a custom web component (bespoke HTML element) so it's trivial to implement.
  • Uses a separate config file to update without having to republish your page (nested img support & folder loading are on roadmap).
  • Allows you to add custom style info on a per-image basis.
  • No dependencies.
  • Very compact (12Kb minified atm).

This isn't aiming to be another image gallery viewer - think of it more like a digital photo frame that is meant to sit on the coffee table and show images passively. It has no UI, though hooks are provided so you can add one. By default it expands to fill whatever container it's placed in, but you can always style it differently if you like.

This is alpha. It's a component-ised version of the slideshow viewer I've had on my own site for ages, and has plenty of shoddy code to prove it. Future versions will improve this and add some vital extra functionality, but don't expect an all-singing, all-dancing featureset, this isn't meant for that.

Usage

Embed the dist/ImagePanel.js file in your HTML (typically at the end of <body>):

<script src="pathto/ImagePanel.js"></script>

Add a <image-panel> element in the desired location. Set the data attribute to point to a JSON config file. Use the sample one in test as a guide until this README is improved.

<image-panel data="pathto/slideshow.json"></image-panel>

FAQs

Package last updated on 23 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc