Skip to content

0.4.0

Compare
Choose a tag to compare
@joshmcrty joshmcrty released this 16 Dec 17:07
· 28 commits to master since this release
  • 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.