All Projects → enricodeleo → jqlouds

enricodeleo / jqlouds

Licence: MIT license
☁️ An awesome yet simple plugin for jquery that let's you create clouds on the fly.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to jqlouds

natural js
Natural-JS : Javascript Front-End Architecture Framework
Stars: ✭ 35 (-35.19%)
Mutual labels:  jquery-plugin, ui-components
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+401.85%)
Mutual labels:  jquery-plugin, ui-components
Pg Calendar
📆 beautiful and eidetic date picker
Stars: ✭ 109 (+101.85%)
Mutual labels:  jquery-plugin, ui-components
jQuery-Clock-Plugin
Turns a given dom element into a jQuery Clock that can take an initial timestamp instead of client system time, supports internationalization and PHP Style Format Characters, and is relatively independent from system clock
Stars: ✭ 70 (+29.63%)
Mutual labels:  jquery-plugin
react-native-card-list
A React Native component which displays a list of image cards that zoom to fullscreen
Stars: ✭ 19 (-64.81%)
Mutual labels:  ui-components
vuestic-ui
Free and Open Source UI Library for Vue 3 🤘
Stars: ✭ 1,501 (+2679.63%)
Mutual labels:  ui-components
bulmil
💄 A agnostic UI components library based on Web Components, made with Bulma & Stencil.
Stars: ✭ 121 (+124.07%)
Mutual labels:  ui-components
jquery.selectlistactions.js
jQuery.SelectListActions plugin allows you to perform several actions with HTML Select lists
Stars: ✭ 35 (-35.19%)
Mutual labels:  jquery-plugin
aframe-colorwheel-component
A-Frame Colorwheel. Based on A-Painter and A-Frame Material 🎨🅰
Stars: ✭ 16 (-70.37%)
Mutual labels:  ui-components
chatKit
Open Source React Chat Widget. Ready for use and can be connected to any backend like Chatbot/NLP/Live Chat engine or messenger.
Stars: ✭ 42 (-22.22%)
Mutual labels:  ui-components
carbon-components-svelte
Svelte implementation of the Carbon Design System
Stars: ✭ 1,615 (+2890.74%)
Mutual labels:  ui-components
jquery.niceform
The jQuery plugin for validation and post form data to server
Stars: ✭ 16 (-70.37%)
Mutual labels:  jquery-plugin
SwiftUI-Color-Kit
SwiftUI Color Pickers, Gradient Pickers And All The Utilities Needed To Make Your Own!
Stars: ✭ 120 (+122.22%)
Mutual labels:  ui-components
jquery.smartbox
基于jquery 的弹出层插件。官方文档:http://smartbox.huangsw.com/cn/introduce.html
Stars: ✭ 21 (-61.11%)
Mutual labels:  jquery-plugin
jq-ajax-progress
jQuery plugin that adds support of `progress` promise
Stars: ✭ 59 (+9.26%)
Mutual labels:  jquery-plugin
sim-tree
一个操作简单的基于jquery的树展示插件,支持异步展示子节点
Stars: ✭ 22 (-59.26%)
Mutual labels:  jquery-plugin
KeyboardDelimiter
jQuery Plugin for delimite pressed key on keyboard
Stars: ✭ 14 (-74.07%)
Mutual labels:  jquery-plugin
instastory.js
This is a jQuery plugin to make it easy to get a feed from instagram. No need of access tokens and other stuff, Only thing needed is jQuery.
Stars: ✭ 36 (-33.33%)
Mutual labels:  jquery-plugin
vue-cli3-lerna-ui
基于VUE CLI 3 & Lerna的UI框架设计
Stars: ✭ 73 (+35.19%)
Mutual labels:  ui-components
visage
Visage design system
Stars: ✭ 12 (-77.78%)
Mutual labels:  ui-components

jQlouds logo

An awesome yet simple plugin for jquery that let's you create clouds on the fly.

Getting Started

With Bower

You can include jQlouds in your project with bower with:

bower install jqlouds --save

npm

npm install jqlouds

Manual

Download the package, unzip it and include the preferred script within /dist (minified or not) after the jQuery library (unless you are packaging scripts somehow else).

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.jqlouds.min.js"></script>

Documentation

Basic usage

As you can see in the getting started section, you just need to pass a jquery selector and call the plugin in order to get the job done.

You can generate multiple clouds on the same page, each element will be filled with random static clouds. Note that the selected element will be relatively positioned in order to accomodate absolutely positioned clouds.

$('#sky1, #sky2').jQlouds();

Height of the sky

Unlike the real sky, here we know exactly how much it is height: minimu height is given automatically based on the height of the biggest cloud. You can give a different height to the element throug the plugin itself.

via css

<div id="sky" style="height:223px;"></div>
<script>
jQuery(function($) {
  $('#sky').jQlouds();
});
</script>

via jquery

<div id="sky"></div>
<script>
jQuery(function($) {
  $('#sky').jQlouds({ skyHeight: 223 });
});
</script>

Animation

Sometimes the wind blows and clouds became to move around the sky, isn't it? Well, you can turn on your very personal wind just by setting it to true:

$('#sky').jQlouds({
  wind: true
});

note about performances

jQlouds relies on jQuery's .animate() to perform its animations. Since this is something quite heavy, animations come disabled by default. I'll try to improve this feature with CSS3 animations. If you'd like to contribute feel free to fork this project and submit a pull request.

Number of clouds

The amount of clouds is chosen randomly between 20 and 30.

You can adjust these values settings minClouds and maxClouds parameters:

$('#sky').jQlouds({
  minClouds: 5,
  maxClouds: 10
});

Maximum clouds' size

The default image provided (it is served as base64 image so you won't need to upload anything but the plugin) is 227x96 px. All the clouds generated are randomly sized less or equal to that size. You can adjust this behavior as per your needs with:

$('#sky').jQlouds({
  maxWidth: 113,
  maxHeight: 48,
});

Customize the cloud

If you don't like my cloud (how dare you! :P) you just need to change the src property when calling the plugin, like so:

$('#sky').jQlouds({
  src: 'path/to/image.png',
});

Options

These are all the current options supported by jQlouds, as we've seen above:

options = {
  src: 'images/cloud.png', // path to image, the default is a base64 (you can see the actual string in sources)
  maxWidth: 227, // max image's width
  maxHeight: 96, // amx image's height
  minClouds: 20, // minimum amount of clouds
  maxClouds: 30, // maximum amount of clouds
  skyHeight: null, // height of the container element
  wind: false // animate clouds, default is false
};

$('#sky').jQlouds(options);

Examples

You can see this plugin in action here.

ToDo

✔️ Introduce CSS3 animations with jQuery.animate() fallback

✔️ Release on bower registry

✔️ Release on jQuery Plugins registry (until 0.2.3 since the registry is now deprecated)

✔️ Release on npm as per jQuery new policy

✖️ SVG images with png fallback

✖️ ? (suggestion welcomed)

Release History

  • v1.0.0 - 27/01/15
    • check for 3D support and apply jQyery.animate() as a fallback if not supported
    • bumped version to 1.0.0 on bower and jquery
  • v0.2.3-css3 - 27/01/15
    • alternative version that leverage hardware acceleration via CSS3 and translate3d (see the css3 branch)
  • v0.2.3 - 06/07/14
  • v0.2.0 - 06/07/14
    • improved clouds' positioning
    • introduced configurable container's height
    • written an hopefully decent README.md
  • v0.1.0 - 05/07/14
    • first release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].