Auz / Bug

Add bugs to your website
https://auz.github.io/Bug/
435 stars 80 forks source link

Attach to element instead of window? #3

Open thetrickster opened 10 years ago

thetrickster commented 10 years ago

I was looking to see if there's a way we can have an option to set which element we'd like the animation to happen in and the bugs will stay contained to that element. I see you have quite a bit of code based on the window height and width for the bugs to fly in and out, etc. and was wondering if you thought about adding an option to specify an element to contain the animation.

Cool little code but I don't think I can use it on a whole page--

Auz commented 10 years ago

I might do this, but would require a bit of rework. I'll keep you posted.

ulf- commented 8 years ago

Any chance this ever got updated to select an element rather than the entire page? I would love to use your script, but if I have to apply it to the whole page it's not going work. Let me know - thanks!

girl1234 commented 7 years ago

how can i valid bugs comes from specific div instead coming across window? please help