1.1.9 • Published 2 years ago

textmoviemaker v1.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

USAGE

Movie object description

For creating animation you need instantiate new Movie object with require parameters: movieID: it is id of HTML-element that contains your animation; frameDuration: it is duration of every frame (wow); framesList: it is list of instatiations of Frame object.

Frame object description:

You need use this class for creating your animation frames. Parameters: content: yes, it is just content; classList: it is list of HTML-classes that the element with movieID receives during this frame.

EXAMPLES

You can check demo-files in project directory. Or look at this example:

<link rel="stylesheet" href="./node_modules/textmoviemaker/style.css">
<script src="./node_modules/textmoviemaker/textmovie.js"></script>

<script>
    function Play() {
        let m = new Movie(
            "movie",
            1000,
            [
                new Frame("😎👌", ""),
                new Frame("😘🕶️👌", ""),
                new Frame("THE END", "end")
            ]
        );

        m.movieLoop();
    }
</script>
1.1.9

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago