ElkArte Community

Extending Elk => Addons => Topic started by: Spuds on December 08, 2014, 07:25:36 pm

Title: [ADDON] Snow
Post by: Spuds on December 08, 2014, 07:25:36 pm
Due to the underwhelming response to my first fine snowstorm efforts  :P I now bring you "No Frills Snowstorm with Bells and Whistles".

Introduction
This addon adds a snow storm effect to your site.

Snowstorm can eat up a lot of CPU, even on modern computers, because of the number of elements being moved around the screen at once. Consider raising the animation interval, and lowering the amount of snowflakes (active and max) to help reduce CPU use.

Where supported, Snowstorm will attempt to use GPU-based hardware acceleration to draw and animate the snow. Having GPU acceleration can help in reducing CPU load.

By default, mobile devices are excluded from the snow effect to be nice to their CPUs (and batteries.)  The snow effect is also disabled in the Admin panel.

This addon utilizes Scott Schiller Snowstorm javascript, BSD license, ( http://www.schillmania.com/projects/snowstorm ), it does all the work, the addon is simply a wrapper.

Features
o Master setting to enable or disable the snow storm
o Set Theoretical "milliseconds per frame" measurement
o Set the maximum number of snowflakes that can exist on the screen at any given time
o Set the limit of "falling" snowflakes (ie. moving on the screen, thus considered to be active.)
o Allows snow to move dynamically with the "wind", relative to the mouse\'s X (left/right) coordinates
o Ability to stop the snow effect when the browser window goes out of focus. Saves CPU, nicer to user.
o Set the color of the snowflakes to adjust for theme backgrounds.
o Set the snowflake character, changing it may require flakeWidth/flakeHeight changes.
o Set Max pixel width/height reserved for snow element (for above).
o Allows the snow to "stick" to the bottom of the window.
o When recycling fallen snow off the bottom, have it "melt" and fade out (if browser supports it)
o Allow snow to randomly "flicker" in and out of view while falling
o Defines maximum X/Y velocities for the storm

Download
http://addons.elkarte.net/other/Snow-Storm.html

Title: Re: [Addon] Snow
Post by: ahrasis on December 08, 2014, 10:21:28 pm
Nice... Great job @Spuds
Title: Re: [Addon] Snow
Post by: Jorin on December 09, 2014, 02:04:11 am
Great! :D
Title: Re: [Addon] Snow
Post by: meetdilip on December 09, 2014, 10:24:53 pm
Good work @Spuds
Title: Re: [Addon] Snow
Post by: davemc on December 27, 2014, 02:49:20 pm
Nice
Title: Re: [Addon] Snow
Post by: shaitan on February 22, 2017, 01:28:45 pm
Nice.  :)

French translation in attachment

Title: Re: [Addon] Snow
Post by: Spuds on February 24, 2017, 10:57:03 am
Translation added :D
Title: Re: [ADDON] Snow
Post by: radu81 on September 16, 2017, 09:01:16 pm
works fine with 1.1 RC2
@Spuds‍  on add-on site the, the Support button points to another topic, instead this one.
Title: Re: [ADDON] Snow
Post by: Spuds on September 16, 2017, 09:36:00 pm
Cool that it works, thanks for testing and finding that wrong link. 

I'll update the package so it can install w/o compat mode and fix the addon site link ... actually just did on my local but don't have the bandwidth to push it ATM.
Title: Re: [ADDON] Snow
Post by: Spuds on November 26, 2017, 05:29:41 pm
Updated package to support ElkArte 1.1