利用jQuery实现图片分割显示内容



72 284 95



特效描述:利用jQuery实现 图片分割 显示内容,利用jQuery实现图片分割显示内容

代码结构

1. 引入JS

<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/easing.js'></script>

2. HTML代码

<h1>This is how it looks :)</h1>
<!--START THE MAIN CONTAINER-->
<div class='box_container'>
        <!--START THE IMAGE PARTS HOLDER-->
        <div class='images_holder'>
            <!--INSERT THE SAME IMAGE IN 2 DIVS, THEY BOTH HAVE image_div CLASS AND left OR right CLASS DEPENDING ON POSITION-->
            <div class='image_div left'><img class='box_image' src='img.jpg'/></div>
            <div class='image_div right'><img class='box_image' src='img.jpg'/></div>
            <!-- WE USED CSS FLOAT PROPERY, SO WE NEED TO CLEAR NOW-->
            <div class='clear'></div>
        </div>
        <!--END THE IMAGE PARTS HOLDER-->
        <!--START THE TEXT-->
        Looks nice doesn't it :)
        <!--END THE TEXT-->
</div>
<!--END THE MAIN CONTAINER-->  
        <!--    WITH NICE EFFECT    -->
<h1>And just a little addition so you can see how it can look with easing plugin.</h1>        
<div class='box_container2'>
        <div class='images_holder2'>
            <div class='image_div2 left2'><img class='box_image2' src='img.jpg'/></div>
            <div class='image_div2 right2'><img class='box_image2' src='img.jpg'/></div>
            <div class='clear'></div>
        </div>
        Made with <a href='http://51qianduan.com/'>easing plugin</a>. Quite nice isn't it :) If you don't know how to implement it, just ask by commenting and i'll update the tutorial with the instructions.
</div>
<br>
<br>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动滑过 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 滑动星星打分 其他更多 图片滑动 图片切换 鼠标滑过

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到