Skip to content

Releases: joshmcrty/Flurry

1.2.0

30 Dec 01:21
Compare
Choose a tag to compare

New Features

  • onFlake hook to execute a custom function when each snowflake is created. See readme for more information.
  • Support for more emoji characters by passing a array of individual character strings to the character setting.

1.1.0

05 Feb 22:16
Compare
Choose a tag to compare

New Features

  • startRotation option sets the initial CSS rotation for each flake
  • multiple colors can be specified by passing an array of CSS color values

Bugfixes

  • Fixed the rotationVariance option not being used properly

1.0.2

06 Dec 22:29
Compare
Choose a tag to compare

Bugfix: blurred flakes now use same color as non-blurred flakes

1.0.1

06 Dec 22:01
Compare
Choose a tag to compare

Fix CSS positioning bug

1.0.0

05 Dec 03:29
Compare
Choose a tag to compare

Drops legacy browser support in favor of modern technologies including CSS transforms, CSS transitions, and requestAnimationFrame for better performance. Polyfills are provided automatically to extend support for older browsers but has not been tested.

This version also updates some of the available options and provides a new "destroy" method to tear down a plugin instance (good for toggling snow on/off).

0.4.0

16 Dec 17:07
Compare
Choose a tag to compare
  • Modified how the plugin is applied to an element on the page. Now uses typical jQuery "select an element, then do something to it" paradigm. Prior to this change you could use $().flurry() and pass an optional container option to target a specific element. Now you should use $('body').flurry() to render snowflakes on the entire page or $('.snowflakes').flurry() to render snowflakes on a specific element (an element with the "snowflakes" class in this example).
  • Added a useRelative option that applies position: relative to the element that the snowflakes will be rendered within. Defaults to true.
  • Added a useTransition option that uses CSS transitions instead of jQuery's .animate() method to animate the snowflakes. This checks for browser support and falls back to .animate() if necessary.
  • Updated the preventScroll option to apply overflow: hidden instead of overflow-x: hidden.
  • Added pointer-events: none CSS to flakes to prevent make them less intrusive on browsers that support this CSS property.

0.3.0

22 Dec 04:19
Compare
Choose a tag to compare

This release adds a container setting contributed by @miguelleite that allows you to generate flakes in a specific container instead of just using the body element.