@all-user/olympic2020

0.0.3 • Public • Published

Olympic2020

Generate emblem of Olympic in 2020.

Usage

npm i @all-user/olympic2020
<head>
    <script src="path/to/olympic2020/dist/bundle.js"></script>
    <link rel="stylesheet" href="path/to/olympic2020/dist/bundle.css">
</head>
<body>
    <script>
        var olm = Olympic2020('t', { size: 300 }); // initial charactor and size in px.

        document.addEventListener('DOMContentLoaded', function() {

            olm.appendTo(document.body);
            // or other way.
            // document.body.appendChild(olm.dom);
            // olm.dom is instance of DOMElement.

            olm.to('z'); // change to another charactor.

            olm.animateFromString('tokyo olympic 2020'); // animate from string.

            // grouping
            var group = new EmblemGroup('tokyo 2020');

            group.appendTo(document.body);
        });
    </script>
</body>

Readme

Keywords

none

Package Sidebar

Install

npm i @all-user/olympic2020

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • all-user