GithubHelp home page GithubHelp logo

pegasuspect / 3d-bubble-cloud Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 437 KB

A jQuery plugin for creating 3D bubble cloud with rotation ability

Home Page: https://www.osmansekerlen.com/3D-Bubble-Cloud/

License: MIT License

HTML 32.07% CSS 29.77% JavaScript 38.16%
3d-bubble-cloud jquery jquery-plugin bower rotation

3d-bubble-cloud's Introduction

3D Bubble Cloud

A jQuery plugin for creating 3D bubble cloud with rotation ability. Live demo and tests here.

Installation

Bower

You can download this repo with its dependencies using bower:

$ bower install bubble-cloud-3d

Regular

Or you can simply download the BubbleCloud3D.js file with the BubbleCloud3D.css file. Then in your html file link to them. For example:

<!-- External Libraries -->
<script src="bower_components/hammerjs/hammer.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>

<!-- Bubble Cloud 3D -->
<script src="js/BubbleCloud3D.js"></script>
<link rel="stylesheet" href="css/BubbleCloud3D.css">

Usage

With jQuery select elements and just use the method, to3DBubbleCloud()

Example wrappers:

<ul class="frame">
    <li>Lorem</li>
    <li>ipsum</li>
    <li>dolor</li>
    <li>sit</li>
    <li>amet,</li>
    <li>consectetur</li>
    <li>adipiscing</li>
    <li>elit,</li>
    <li>sed</li>
    <li>do</li>
    <li>eiusmod</li>
    <li>tempor</li>
    <li>incididunt</li>
    <li>ut</li>
    <li>labore</li>
    <li>et</li>
    <li>dolore</li>
    <li>magna</li>
    <li>aliqua.</li>
    <li>Ut</li>
</ul>
<div class="show bg-danger frame">
  <span>Hi</span>
  <span>This</span>
  <span>is</span>
  <span>a</span>
  <span>new</span>
  <span>frame</span>
</div>

Javascript method to convert them:

$(function(){
  //assuming wrapper of the list has "frame" class
  $(".frame").to3DBubbleCloud();
});

You may specify custom settings for:

  • angularSpeedMultiplier
  • maxAngularSpeed
  • distributeBubblesRandomly
  • showBubblesOutOfFrameBorders
var options = {
    angularSpeedMultiplier: 3, // default is 1
    maxAngularSpeed: 24, // default is 8
    showBubblesOutOfFrameBorders: false, // default is true
    distributeBubblesRandomly: true // default is false
}
$(function(){
  //assuming wrapper of the list has "frame" class
  $(".frame").to3DBubbleCloud(options);
});

Dependencies

Credits

  1. http://stackoverflow.com/a/14609567
  2. http://stackoverflow.com/a/5480292

3d-bubble-cloud's People

Contributors

pegasuspect avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.