npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-ken-burns-slideshow

v1.0.6

Published

Image SlideShow - The Ken Burns effect is a type of panning and zooming effect used in film and video production from still imagery.

Downloads

15

Readme

npm (tag) GitHub GitHub repo size

Svelte Ken Burns Slideshow.

This is a simple and preformat Svelte component that creates an Image SlideShow with the well known Ken Burns effect.

svelte-ken-burns-slideshow

The Ken Burns effect is a type of panning and zooming effect used in film and video production from still imagery. The name derives from extensive use of the technique by American documentarian Ken Burns. This technique had also been used to produce animatics, simple animated mockups used to previsualize motion pictures, but Burns's name has become associated with the effect in much the same way as Alfred Hitchcock is associated with the dolly zoom.

Check Wikipedia: https://en.wikipedia.org/wiki/Ken_Burns_effect

Installation

https://www.npmjs.com/package/svelte-ken-burns-slideshow

npm i svelte-ken-burns-slideshow --save-dev

Usage

Fullscreen view.

<script>
  import KenBurns from 'svelte-ken-burns-slideshow';

  const gallery = [
    './gallery/01.jpg',
    './gallery/02.jpg',
    './gallery/03.jpg',
    './gallery/04.jpg',
    './gallery/05.jpg',
  ];
</script>

<KenBurns images={gallery} />

Boxed view.

By default the ImageSlideShow runs in fullscreen. If you need a specific size of your SlideShow, just it in a parent container with the dimensions you like and a position relative.

<div>
  <KenBurns images={gallery} />
</div>

<style>
  div {
    position: relative;
    height: 300px;
    width: 400px;
  }
</style>

Parameters

<KenBurns
  images={gallery}
  slideDuration="25000"
  fadeDuration="5000"
  showArrows="true"
  showPagination="true"
/>

| Parameter | Default | Description | Unit | | -------------- | ------- | ------------------------------------------------------------------------------ | ------- | | images | [] | Array with image paths as string. | ['...'] | | slideDuration | 25000 | Time in milliseconds for the Ken Burns effect itself (zoom in / out) + motion. | ms | | fadeDuration | 5000 | Time in milliseconds for fade-in effect when the image appear. | ms | | showArrows | true | Show or hide arrows on left and right to navigate. | boolean | | showPagination | true | Show or hide list with slide indicator. | boolean |

Demo

Coming soon.

Demo on local

Coming soon.