一个手风琴效果的jquery动画
来源:互联网 发布:面向对象编程的优势 编辑:程序博客网 时间:2024/05/21 12:48
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style> *{ padding:0px; margin:0px; } .li_list{ float:left; overflow:hidden; list-style:none; width:100px; height:300px; } .block{ width:602px; height:300px; float:left; text-align:center; line-height:300px; background-color: rgba(255, 165, 0, 0.38); } .back{ width:500px; height:300px; border:1px solid #ccc; float:left; } .li_list img{ width:100%; height:100%; } .li_mo{ width:602px; } .animal{ float:left; width:100px; height:300px; display:inline-block; } </style></head><body><ul> <div class="clear"></div> <li class="li_list li_mo" > <div class="block"> <span class="animal">萌宠</span> <div class="back"> <img src="7.25/img/0.jpg"> </div> </div> </li> <li class="li_list"><div class="block"><span class="animal">萌宠</span><div class="back"><img src="7.25/img/1.jpg"></div></div></li> <li class="li_list"><div class="block"><span class="animal">萌宠</span><div class="back"><img src="7.25/img/2.jpg"></div></div></li> <li class="li_list"><div class="block"><span class="animal">萌宠</span><div class="back"><img src="7.25/img/3.jpg"></div></div></li></ul><script src="7.25/jquery-3.0.0.js"></script><script type="text/javascript"> $(function(){ $(".li_list").each(function(){ //each遍历 $(this).mouseenter(function(){ $(this).stop().animate({"width":"600px"},500,"linear").siblings().stop().animate({"width":"100px"},500,"linear") })//当鼠标进入时,让改元素撑开,而其他的元素合住,stop()用来防止当鼠标晃动多次时带来的延迟的bug }) })</script></body></html>
阅读全文
0 0
- 一个手风琴效果的jquery动画
- 一个最简单的jQuery手风琴效果
- jquery插件手风琴的效果
- 一个简单的手风琴效果
- jQuery插件的使用 --- 手风琴的效果
- 基于jQuery实现的手风琴效果Accordion
- JQuery基础练习:简单的手风琴效果
- jQuery手风琴效果
- jquery实现手风琴效果
- jquery手风琴效果插件
- jquery插件手风琴效果
- jquery插件-手风琴效果
- jquery插件手风琴效果
- jquery简单手风琴效果
- jQuery手风琴效果
- jquery手风琴效果
- jquery实现手风琴效果
- jquery手风琴效果
- JS的面向对象-工厂方式-原型-继承
- 数据结构:链表队列
- Another a+b FZU
- 基于S3C2440的busybox的移植---解决FL2440的shell指令不能自动补全
- div模拟textarea高度随文本变化
- 一个手风琴效果的jquery动画
- 值得学习的C/C++语言开源项目
- Ubuntu 下 NFS环境的搭建
- scala 随笔(4) implicit 隐式转换 和冲突解决
- AJax请求数据用Jquary向select追加<option>
- R语言遗传算法
- 自定义Stack、Queue类
- C++输入输出
- 计算组合数