All Projects → nayleen → jQuery-Sakura

nayleen / jQuery-Sakura

Licence: MIT license
Make it rain - sakura petals or anything else for that matter.

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to jQuery-Sakura

jQuery-Facebook-Stream
Display all your wall post, comments & likes in groups or fans page.
Stars: ✭ 24 (-68.42%)
Mutual labels:  jquery-plugin
conditionize.js
Small jQuery plugins for handling conditional form fields via data attributes. Unmaintained.
Stars: ✭ 56 (-26.32%)
Mutual labels:  jquery-plugin
desoslide
Take control of your slideshow with this powerful jQuery plugin
Stars: ✭ 68 (-10.53%)
Mutual labels:  jquery-plugin
jquery-sina-emotion
一个用来方便快速地创建新浪微博表情选择对话框的jQuery插件。
Stars: ✭ 56 (-26.32%)
Mutual labels:  jquery-plugin
jquery.geocomplete
A simple plugin for Google Maps Autocomplete.
Stars: ✭ 15 (-80.26%)
Mutual labels:  jquery-plugin
just-scroll
Simple indicate the possibility of scrolling on a page with СSS3 animation.
Stars: ✭ 34 (-55.26%)
Mutual labels:  css3-animations
jquery-custom-select
Custom Select jQuery Plugin
Stars: ✭ 27 (-64.47%)
Mutual labels:  jquery-plugin
Ace-Responsive-Menu
Ace responsive menu is a lightweight jQuery plugin to create responsive multi-level navigation menus with multi device support. Ace responsive menu comes with 3 variants like horizontal, vertical and accordion menu. It gives complete responsive menu solution for any kind of websites or admin templates. The plugin has clean and well commented val…
Stars: ✭ 46 (-39.47%)
Mutual labels:  jquery-plugin
guillotine
jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
Stars: ✭ 321 (+322.37%)
Mutual labels:  jquery-plugin
jquery.pwstrength
A jQuery plugin to indicate the strength of passwords
Stars: ✭ 22 (-71.05%)
Mutual labels:  jquery-plugin
JJ CAMP
JavaScript & jQuery 정복 CAMP × 패스트캠퍼스
Stars: ✭ 19 (-75%)
Mutual labels:  jquery-plugin
jquery-svg-convert
Convert .svg images to code on the fly with jQuery
Stars: ✭ 30 (-60.53%)
Mutual labels:  jquery-plugin
Parallaxie
Easiest, Responsive and Customizable Parallax jQuery Plugin
Stars: ✭ 65 (-14.47%)
Mutual labels:  jquery-plugin
fixedThead
A jQuery plug-in for fixed table header
Stars: ✭ 21 (-72.37%)
Mutual labels:  jquery-plugin
jquery-scrollToTop
A jQuery plugin that display a button for scrolling the page to the top.
Stars: ✭ 14 (-81.58%)
Mutual labels:  jquery-plugin
Facebook-Album-Browser
jQuery plugin for browsing public albums of a Facebook account
Stars: ✭ 76 (+0%)
Mutual labels:  jquery-plugin
paginathing
a jQuery plugin to paginate your DOM easily.
Stars: ✭ 23 (-69.74%)
Mutual labels:  jquery-plugin
valida
jQuery Plugin for client side easy form validations.
Stars: ✭ 17 (-77.63%)
Mutual labels:  jquery-plugin
jQuery-Awesome-Sosmed-Share-Button
Awesome Social Media Share Button With Share Count
Stars: ✭ 58 (-23.68%)
Mutual labels:  jquery-plugin
fontIconPicker
A lightweight iconpicker for use with jQuery
Stars: ✭ 30 (-60.53%)
Mutual labels:  jquery-plugin

jQuery Sakura

Make it rain - sakura petals or anything else for that matter.

Uses CSS3 animations and requestAnimationFrame to put a plethora of cherry blossom petals that drift and sway in the "wind" on your site.

Sakura Animation

Installation

Download and add the files to your asset folder(s), be sure to use the right paths when including the files in your site.

Basic Usage

Simply include both the css and js file in your HTML and run the sakura() function added by this plugin on domReady or windowLoad:

<!-- In your HTML head -->
<link type="text/css" rel="stylesheet" media="screen" href="/css/jquery-sakura.min.css" />

<!-- End of your HTML body -->
<script src="/js/jquery-sakura.min.js"></script>
<script>
    // domReady
    $(function() {
        $('body').sakura();
    });

    // windowLoad
    $(window).load(function() {
        $('body').sakura();
    });
</script>

If you ever want or need to disable the generation of the petals, run the method again, passing the event name 'stop' to the function:

$('#stop_sakura').on('click', function() {
    $('body').sakura('stop');
});

Configuration

You're able to change some parameters by passing an option object to the sakura function:

$(window).load(function() {
    $('body').sakura('start', {
        blowAnimations: [
            'blow-soft-left',
            ...
        ],                   // Horizontal movement animation names
        className: 'sakura', // Class name to use
        fallSpeed: 1,        // Factor for petal fall speed
        maxSize: 14,         // Maximum petal size
        minSize: 9,          // Minimum petal size
        newOn: 300,          // Interval after which a new petal is added
        swayAnimations: [    // Swaying animation names
            'sway-0',
            ...
        ]
    });
});

Live Demo

You can view a live preview of the most recent version of the plugin here.

Credits

Originally thought up and commissioned by Naomi Forame.

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].