/    Sign up×
Community /Pin to ProfileBookmark

Modifying jQuery Splatter plugin to avoid collision/overlap

[URL=”http://coryschires.com/jquery-splatter-plugin/”]jQuery Splatter by Cory Schires[/URL]

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:

[CODE] height: $(“#article-text”).height(),
width: $(“#article-text”).width()[/CODE]

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

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@BelugaauthorMay 25.2011 — Finally got a response from the dev and he will be working on my issues!
×

Success!

Help @Beluga spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...