Skip to content
speech bubble component for game ui
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
.bmp.yml
.gitignore
.jshintrc
.nojekyll
LICENSE
README.md
multiflip-bubble.js
package.json
src.js
test.html
yarn.lock

README.md

multiflip-bubble v5.0.0

Animating speech bubble component, appears and disappears flipping its sections.

NOTE: This library depends on jquery, class-component and multiflip

Install

via npm

npm install multiflip-bubble

Usage

<script src="path/to/jquery.js"></script>
<script src="path/to/multiflip.js"></script>
<script src="path/to/multiflip-bubble.js"></script>

<script>
$(function () {
    var chr = $('#char');
    var sb = chr.multiflipBubble($('<p />').text('Hello, world!'));

    chr.one('click', function () {

        sb.show().then(function (sb) {

            chr.one('click', function () {

                sb.hide().then(init);

            });

        });

    });

});
</script>

<div id="char">Click!</div>

demo (chrome)

You can’t perform that action at this time.