Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

solitairewin

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solitairewin

You win!

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

For nice victory

View example

Options

viewport

The container element to which the canvas will be appended. The animation will conform to the size of this element.

images

An array of the names of all images to be animated.

path

Path to the folder containing the images.

n

Number of images onscreen at a time. Defaults to 1.

resize

Boolean indicating whether to resize canvas on window resize. Basically only for when viewport resizes with window.

minVx

maxVx

minVy

maxVy

bounce

gravity

Notes

There's a load method which accepts a callback and loads the images. A load event is also triggered on load. Using start implicitly calls load.

Keywords

canvas

FAQs

Package last updated on 11 Feb 2013

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