Beluga
25 May 2011, 08: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?
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?