A
A
Alexey Lebedev2016-01-22 07:51:23
JavaScript
Alexey Lebedev, 2016-01-22 07:51:23

How to make frame-by-frame animation in HTML?

There is a set of pictures.
Example:
1) person standing (basic)
2) person raising hand (frame from process)
3) person with hand raised
4) person raising leg (frame from process)
5) person with leg raised
The goal is:
A JavaScript function is called and animation takes place.
What options do I have:
1) html canvas
2) render in layers and transform: scale(0); transform:scale(1);
3) use GIF
Which option is the most cross-browser and optimal?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GreatRash, 2016-01-22
@swanrnd

And what's with the canvas? Or do you write tags from the bulldozer? Cho then without 3D?

A
Alexey Strukov, 2016-01-22
@pm_wanderer

The second option is weird.
Gif in my opinion is the simplest, if there are few colors in the picture
Otherwise, do frame-by-frame animation using css animation

T
toaster khabrovich, 2016-01-22
@studententer

css sprites?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question