开发者

how can i spread images inside div using jquery

开发者 https://www.devze.com 2023-03-12 09:27 出处:网络
i am looking for a jquery plugin that does the following: let say i have a div container and 5 images that i want to display inside the div.

i am looking for a jquery plugin that does the following: let say i have a div container and 5 images that i want to display inside the div. i want the images to be randomly located inside the div without overriding each other using the css position relative attribute. for example:

<div class="floating_are" >
<img src="..." style="position:relative; top:5px; left:3px" />
<img src="..." style="position:relative; t开发者_如何学运维op:50px; left:30px" />
<img src="..." style="position:relative; top:80px; left:27px" />
<img src="..." style="position:relative; top:111px; left:92px" />
</div>

the output should be a div with 5 images randomly spread inside. now, before i roll my sleeves and write it, i was wondering if any of you know of an existing plugin ?


This might interest you Scatter Gallery

0

精彩评论

暂无评论...
验证码 换一张
取 消