All Projects → karriereat → animation-strip-generator

karriereat / animation-strip-generator

Licence: MIT License
A tool for creating sprite animations from image sequences.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

karriere.at Animation Strip Generator

A tool for creating sprite animations from image sequences.

Installation

git clone https://github.com/karriereat/animation-strip-generator
npm install
npm link

The tool has not yet been published to npm and is still under development, so you can either link the binary via npm link or directly execute the main.js file from this repository.

Usage

animation-strip-generator test/input test/output --name bell --fps 30

The above command will read the image sequence from test/input and create a strip at test/input/bell.png. The strip is then pushed through pngquant for great compression. You also get the necessary CSS styles for the sprite animation.

Strip

.animation {
    width: 109px;
    height: 75px;
    background: url(bell.png) left center;
    animation: play 1.4666666666666666s steps(44) infinite;
}
@keyframes play {
    100% { background-position: -4796px; }
}

karriere.at

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].