scottschiller / Snowstorm

Enterprise-grade JavaScript snow effect for the internets, setting CPUs on fire worldwide every winter since 2003.
http://www.schillmania.com/projects/snowstorm/
Other
541 stars 144 forks source link

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

Closed borickard closed 10 years ago

borickard commented 11 years ago

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.

scottschiller commented 10 years ago

This should be corrected now, and I added two targetElement-related demos as well. Make sure you apply overflow: hidden to the target element you're using. Let me know if the issue persists for you.