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.
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.
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.