The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Changing of snowflake size

3 posters

Go down

Solved Changing of snowflake size

Post by Gretta Tue Dec 23 2014, 15:27

Hi!
I use Angies Code for the snowflakes. Is it possible to change snowflake size in this code? 


Code:
$(function() {
  function initSettings() {
    snowStorm.autoStart = true;
    snowStorm.animationInterval = 33;
    snowStorm.flakeBottom = null;
    snowStorm.flakesMax = 128;
    snowStorm.flakesMaxActive = 64;
    snowStorm.followMouse = true;
    snowStorm.freezeOnBlur = true;
    snowStorm.snowColor = '#FF8';
    snowStorm.snowCharacter = '•';
    snowStorm.snowStick = true;
    snowStorm.targetElement = null;
    snowStorm.useMeltEffect = true;
    snowStorm.useTwinkleEffect = false;
    snowStorm.usePositionFixed = false;
  };
  
  $.getScript("http://illiweb.com/rs3/10/frm/snow.js");
  var timeout = 0, snowCheck = window.setInterval(function() {
    if (typeof snowStorm === 'undefined') {
      if (timeout > 5000) window.clearInterval(snowCheck);
      return timeout++;
    }
    else window.clearInterval(snowCheck), initSettings();
  },1);
});




Forum URL: http://plavi.bigforumpro.com/
Gretta
Gretta
New Member

Posts : 14
Reputation : 1
Language : german

http://plavi.bigforumpro.com

Back to top Go down

Solved Re: Changing of snowflake size

Post by _Twisted_Mods_ Tue Dec 23 2014, 20:16

you should just be able to add this to the list

Code:

snowStorm.flakeWidth=20;
snowStorm.flakeHeight=20;


example

Code:
  snowStorm.targetElement = null;
    snowStorm.useMeltEffect = true;
    snowStorm.useTwinkleEffect = false;
    snowStorm.usePositionFixed = false;
snowStorm.flakeWidth=20;
snowStorm.flakeHeight=20;
  };
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Changing of snowflake size

Post by Gretta Tue Dec 23 2014, 23:59

cheers Thank you very much! Very Happy
Gretta
Gretta
New Member

Posts : 14
Reputation : 1
Language : german

http://plavi.bigforumpro.com

Back to top Go down

Solved Re: Changing of snowflake size

Post by Ramdaman Wed Dec 24 2014, 00:00

Topic solved and archived.
Ramdaman
Ramdaman
Active Poster

Male Posts : 1615
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum