Enterprise-grade JavaScript snow effect for the internets, setting CPUs on fire worldwide every winter since 2003.

Related tags

Effect Snowstorm
Overview
Comments
  • dont randomize wind at each start

    dont randomize wind at each start

    we dont need line #461 of https://github.com/scottschiller/Snowstorm/blob/master/snowstorm.js when we want to have the same wind parameters and use the settings of vMaxX and vMaxY so these values are not overwritten by the s.randomizeWind(); at each start

    opened by DanielRuf 4
  • Clipping on Unicode

    Clipping on Unicode

    I have changed the Snow dot on my website to the 🍂 icon, this being accomplished with "🍂 (U+1F342)" However, I cannot find the best setting for the pixels.

    			<script type="text/javascript">
    				snowStorm.snowColor = '#DBFFFF'; // blue-ish snow!? < This is poinless if unicode icon present
    				snowStorm.flakesMaxActive = 24;  // show more snow on screen at once
    				snowStorm.animationInterval = 40; // Flakes Dropping Now
    				snowStorm.useTwinkleEffect = true; // let the snow flicker in and out of view
    				snowStorm.excludeMobile = false;  // Excludes mobile
    				snowStorm.snowCharacter = '🍂'; // for fall 🍁🍂
    				snowStorm.useMeltEffect = false; // Disable for fall
    				snowStorm.flakeWidth = 11; // Fix Width clip
    				snowStore.flakeHeight = 11; // Fix Height clip
    			</script>
    

    Changing the sizes any higher at all only widen 90% of the way, but I cannot get the height correct, any alternative?

    This is the best I can get it by adjusting the flakes to very large pixels image

    opened by dedisystems 3
  • Relative body position causes extremely high winds

    Relative body position causes extremely high winds

    When the body has position: relative in CSS the snow falls straight down at high speeds. When disabling this via browser dev tools, the snow starts falling normally again.

    opened by nickmomrik 3
  • snow only over one image

    snow only over one image

    I currently use java at http://www.skarmoutsos.gr/vaggelis.htm to have a snow effect over an image. Is it possible to have snow over one image instead of a page, using Snowstorm?

    opened by skarmoutsosv 2
  • snow should freeze if the page is loaded in the background

    snow should freeze if the page is loaded in the background

    I got as far as disabling all my add-ons before I worked out Firefox's extra CPU usage was caused by having a tab (2 in my case) with snow open that I hadn't switched to in the current session.

    Since it's impossible to detect if the window is already blurred on load, I was thinking of changing it to only start after the user moves their mouse. Naturally, freezeOnBlur=false would bypass this.

    Any obvious problems with doing that I may have missed?

    opened by welwood08 2
  • Issues with sticking when targetelement is used

    Issues with sticking when targetelement is used

    I'm probably just not understanding the way relative/absolute should work but when using targetelement the flakes go way off the element.

    Obviously overflow:hidden fixes the scrollbar issues but the flakes don't stick to the bottom, they are still going well below the bottom of the element.

    I can set the flakebottom but that doesn't work always for some reason, any ideas?

    I've made a codepen for an example of what I'm talking about here: https://codepen.io/joeybab3/pen/RwJYwRV

    opened by joeybab3 1
  • z-index of other elements

    z-index of other elements "overlap" the snowflakes

    I have a page where I need to use z-index because of different layers. It would be awesome if there was an option to set a z-index or if the snow-div elements should have a class (or if there was an option for a class to set) so i could set a z-index for the snowflakes myself.

    Anyway it's a super cool and easy to use snow effect, nice work !

    opened by nixoschu 1
  • Issue with targetElement if it has less than 100% of page height.

    Issue with targetElement if it has less than 100% of page height.

    I want to apply the effect to a smaller field than the whole page and I want the flakes to land on the bottom. However, they seem to go to the bottom of the screen and then "teleport" to the bottom of the targetElement. And sometimes, they land, but keep moving horizontally.

    Recreate this issue by creating a div with e.g. 500px width and height, then set that div as the target element.

    opened by borickard 1
  • no autostart & start button

    no autostart & start button

    Hello everybody!

    I'm a complete newb at javascript and i've searched the internet to come up with a solution but nothing worked. What i want to do is to have a button on my website to start and stop the snow. So far i found a button to stop it:

    Stop Snowing

    So what i need right now is a way to be able to have the page load without snowing right away. I thought i had found a solution in this.autoStart = false; but this didn't happen.

    How can i make a 'start snowing button'? How can i have it standard non-snowing?

    Thank you very much for reading. Kind regards, Jonas Pijnenburg

    opened by jonaspijnenburg 1
  • Can't get custom snow

    Can't get custom snow

    Hello i tried to get custom snow with one image so i put the images in the folder the html was in /image/snow and it did not work so i did that in the root of the site and that did not work what am i doing wrong? Edit: Never mind i just had to use an older version

    opened by nikillpop 0
  • Change config after running?

    Change config after running?

    Is it possible to re-initialize the snowStorm if you want to update a value after it's running?

    For example say I want to do:

    snowStorm.snowColor=newColor
    

    After the storm has already started. It seems this can only be changed during the first initialization. Is there a work around to change configuration values and then re-load?

    opened by kirkins 0
  • Different Snow color on mobile

    Different Snow color on mobile

    Hi there, I've set the color to #fff which is the color white. But when I view it on my phone, it appears to be light blue. How can I fix this ? Thanks

    opened by nodeffect 1
  • Bring snow to front or on top ALWAYS

    Bring snow to front or on top ALWAYS

    hello, firstly thanks for this its great... problem is it hides behind my rev slider (html) and i cannot get it top stay in front of the slider... anyone help please

    opened by RiPPERD 2
  • Control the Wind direction and snowflakes dimensions

    Control the Wind direction and snowflakes dimensions

    First of all, thanks for the great plugin.

    Is there a way I can control the wind direction? I know that I can control the max and min speed, but I didn`t find a way to control the direction. It seems like it is always random.

    Would be nice if there was a way to control the size of the snowflakes other than overwriting the font-size for the snowflakes.

    opened by DekiGk 2
  • Create SnowToggle.JS

    Create SnowToggle.JS

    When Switching CSS, snowStorm will stop or start this will also generates/overrides the cookie that will determine to load the snowStorm again.

    ~Buggy~ It may run the snowStorm plugin when the selected theme is Summer!

    opened by ShahSheel 0
Playground for the fire effect from DOOM. Really simple algorithm and all experiments are welcome!

Doom Fire Algorithm Playground A playground of experiments related to the Doom fire effect implemented in JavaScript. Feel free to submit your experim

Filipe Deschamps 1.3k Jan 2, 2023
Liquideffect - Javascript Library for creating liquid effect on image and RGB effect on mouse direction.

LiquidEffect Javascript Library for creating liquid effect on image and RGB effect on mouse direction. Demo https://liquideffect.netlify.app/ Dependen

Rohail 8 May 6, 2022
A subtle tilt effect for images. The idea is to move and rotate semi-transparent copies with the same background image in order to create a subtle motion or depth effect.

Image Tilt Effect A subtle tilt effect for images. The idea is to move and rotate semi-transparent copies with the same background image in order to c

Codrops 571 Nov 21, 2022
Javascript library enabling magnifying glass effect on an images

Magnifier.js Javascript library enabling magnifying glass effect on an images. Demo and documentation Features: Zoom in / out functionality using mous

Mark Rolich 808 Dec 18, 2022
A simple yet powerful native javascript plugin for a cool typewriter effect.

TypewriterJS v2 NPM Repository JSFiddle Example Emoji Example CDN You can use the CDN version of this plugin for fast and easy setup. <script src="htt

Tameem Safi 1.8k Jan 4, 2023
"shuffle-text" is JavaScript text effect library such as cool legacy of Flash.

ShuffleText This is the JavaScript library for text effect such as Flash contents. Setup Script Install <script src="shuffle-text.js"></script> NPM In

Yasunobu Ikeda 96 Dec 24, 2022
:keyboard: Simulate a typewriter effect in vanilla JavaScript.

malarkey Simulate a typewriter effect in vanilla JavaScript. Flexible API allowing granular control Option to repeat the sequence indefinitely Allows

Yuan Qing Lim 237 Nov 18, 2022
Small but good javascript smoke effect 🌬💨

Demo You can play with a live demo here → Installation Basic Copy the smoke.js file into your project and use it with a script tag: <script src="smoke

Guillermo Webster 239 Dec 28, 2022
Javascript and SVG odometer effect library with motion blur

SVG library for transitioning numbers with motion blur JavaScript odometer or slot machine effect library for smoothly transitioning numbers with moti

Mike Skowronek 793 Dec 27, 2022
Cool and powerful effect to select fields. Javascript vanilla and ~2kb gzipped

pickout Cool and powerful effect to select fields. Javascript vanilla and ~2kb gzipped. DEMO PAGE For syntax of the previous version click here How to

Alan Ktquez 89 Sep 20, 2022
Javascript Sound Effect Generator

This is a JavaScript library for sound effect generation and is supported on most current browsers. Generation speed is approximately 1s audio = 10ms

Loov 567 Oct 31, 2022
🎨 Aquarelle is a watercolor effect component. Javascript library by @Ramotion

Aquarelle About This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites. Look

Ramotion 1.8k Dec 9, 2022
Add a water ripple effect to your background using WebGL.

jQuery Ripples Plugin By the powers of WebGL, add a layer of water to your HTML elements which will ripple by cursor interaction! Important: this plug

Pim Schreurs 976 Dec 30, 2022
A decorative website background effect where SVG shapes morph and transform on scroll.

Morphing Background Shapes A decorative website background effect where SVG shapes morph and transform on scroll. Article on Codrops Demo This demo is

Codrops 351 Dec 26, 2022
Background image segment effect as seen on [Filippo Bello's Portfolio](http://www.filippobello.com/portfolio).

Segment Effect Background image segment effect as seen on Filippo Bello's Portfolio. Article on Codrops Demo License Integrate or build upon it for fr

Codrops 526 Nov 29, 2022
Switch the background-image with using effect.

jQuery.BgSwitcher Switch the background image with using effect. Demo http://rewish.github.io/jquery-bgswitcher/ Usage <div class="box"> <p>Lorem ip

rewish 195 Dec 30, 2022
Recreation of the background scale hover effect seen on the DDD Hotel website using CSS clip paths.

Background Scale Hover Effect Recreation of the background scale hover effect seen on the DDD Hotel menu using CSS clip paths. Article on Codrops Demo

Codrops 98 Dec 6, 2022
A motion hover effect for a background grid of images.

Image Grid Motion Effect A motion hover effect for a background grid of images. Article on Codrops Demo Installation Install dependencies: npm install

Codrops 118 Dec 31, 2022
fixed-background-effect

Fixed Background Effect A simple template that takes advantage of the background-attachment CSS property to create a fixed background effect. Article

CodyHouse 50 Oct 28, 2022