1.1.0 • Published 3 years ago

bodymovin-to-smil v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

bodymovin-to-smil

Bodymovin to SMIL converter

First version of bodymovin to SMIL

It supports basic animations:

  • masks (additive and intersect)
  • shapes
  • solids
  • texts
  • precomps
  • transforms
  • opacity

Usage

var smil_converter = require('bodymovin-to-smil');
var fs = require('fs');

fs.readFile("./data.json",  "utf8",  function(error, data){
	if(data) {
		smil_converter(JSON.parse(data))
		.then(function(xml){
			fs.writeFile("./animation.svg", xml, function(err) {
			    if(err) {
			        return console.log(err);
			    }

			    console.log("The file was saved!");
			}); 
		}).catch(function(err){
		 		console.log(err);
	 	});
	}
})

Keep in mind that not all browsers support SMIL

current push supports latest version of lottie

1.1.0

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

6 years ago