GithubHelp home page GithubHelp logo

image-slideshow's Introduction

image-slideshow

This repository allows you to serve a website that is an image slideshow. This was originally inspired by the release of the James Webb Space Telescope images. You can choose in the settings how long each slide goes, whether to zoom in (up to unity scale), how the image fills the page, and whether the image info auto-hides or not. Written in Typescript using React framework, TailwindCSS, some Mantine.dev components, and ViteJS.

Live Page

Production

Build with yarn build, and then serve the output dist statically.

You will need to serve a JSON of the images with type

{
    name: string;
    url?: string;
    urls?: {
        hires: string;
        normal: string;
    };
}[]

the resource of which is currently hardcoded in the app.

Settings

In the app, there are four settings.

  • Slideshow interval - 5-60 seconds
  • Random Zoom - Chooses whether the slideshow will zoom in on random portions of the image, up to unity scale
  • Image Fit - Similar to css background-size or object-fit. If set to cover, will go beyond unity scale.
  • Auto-Hide Info - The UI goes away after a period of inactivity of the mouse. Toggling this off will keep the image information and bounds persisting.

Development

yarn dev

License

MIT

Like this utility? Support my hobby!

PayPal donation link

image-slideshow's People

Contributors

kamiyo avatar

Stargazers

 avatar Stelios Petrakis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.