PDA

View Full Version : Modifying jQuery Splatter plugin to avoid collision/overlap



Beluga
25 May 2011, 07:01 AM
jQuery Splatter by Cory Schires (http://coryschires.com/jquery-splatter-plugin/)

I was looking for something that would allow me to scatter elements (divs w/ background-images) behind text. Splatter is almost what I want, but I would need:
- no overlap in the positioning of elements
- keep the elements inside the container
- remove the default asterisk completely

As I have varying article dimensions, this keeps the splatter area the right size:


height: $("#article-text").height(),
width: $("#article-text").width()

Could the collision detection code in jQuery UI Position be used somehow?

Beluga
25 May 2011, 10:13 AM
Finally got a response from the dev and he will be working on my issues!