animate实现6种不同切换遮罩层方法

animate实现6种不同切换遮罩层方法

分享一款图片多种不同遮罩层动画效果,当鼠标悬浮在图片上方,遮罩层会以不同动画animate来显示描述内容。

淘建站为您提供更多_图片代码_遮罩层_滑动_遮罩层,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 301 次

下载资源

6 积分

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。
分类:图片代码 > 遮罩层 难易程度:中级

六种不同的.boxgrid图片和遮罩层代码

<div class="boxgrid captionfull">
    <img src="images/jareck.jpg"/>
    <div class="cover boxcaption">
        <h3>Jarek Kubicki</h3>
        <p>Artist<br/><a href="http://www.sucaiq.com/">More Work</a></p>
    </div>		
</div>

<div class="boxgrid caption">
    <img src="images/kamil.jpg"/>
    <div class="cover boxcaption">
        <h3>Kamil Smala</h3>
        <p>Artist<br/><a href="http://www.sucaiq.com/">More Work</a></p>
    </div>
</div>

<div class="boxgrid slideright">
    <img class="cover" src="images/martin.jpg"/>
    <h3>Martin Stranka</h3>
    <p>Photographer<br/><a href="http://www.sucaiq.com/">More Work</a></p>
</div>

<div class="boxgrid thecombo">
    <img class="cover" src="images/florian.jpg"/>
    <h3>Florian Nicolle</h3>
    <p>Graphic Designer<br/><a href="http://www.sucaiq.com/">More Work</a></p>
</div>

<div class="boxgrid slidedown">
    <img class="cover" src="images/nonsense.jpg"/>
    <h3>The Nonsense Society</h3>
    <p>Art, Music, Word<br/><a href="http://www.sucaiq.com/">Website</a></p>	
</div>

<div class="boxgrid peek">
    <a href="http://www.sucaiq.com/"><img src="images/birss.jpg"/></a>
    <a href="http://www.sucaiq.com/"><img class="cover" src="images/buildinternet.jpg"/></a>
</div>
//Vertical Sliding
$('.boxgrid.slidedown').hover(function() {
    $(".cover", this).stop().animate({top: '-260px'}, {queue: false, duration: 300});
}, function() {
    $(".cover", this).stop().animate({top: '0px'}, {queue: false, duration: 300});
});

//Horizontal Sliding
$('.boxgrid.slideright').hover(function() {
    $(".cover", this).stop().animate({left: '325px'}, {queue: false, duration: 300});
}, function() {
    $(".cover", this).stop().animate({left: '0px'}, {queue: false, duration: 300});
});

//Diagnal Sliding
$('.boxgrid.thecombo').hover(function() {
    $(".cover", this).stop().animate({top: '260px', left: '325px'}, {queue: false, duration: 300});
}, function() {
    $(".cover", this).stop().animate({top: '0px', left: '0px'}, {queue: false, duration: 300});
});

//Partial Sliding (Only show some of background)
$('.boxgrid.peek').hover(function() {
    $(".cover", this).stop().animate({top: '90px'}, {queue: false, duration: 160});
}, function() {
    $(".cover", this).stop().animate({top: '0px'}, {queue: false, duration: 160});
});

//Full Caption Sliding (Hidden to Visible)
$('.boxgrid.captionfull').hover(function() {
    $(".cover", this).stop().animate({top: '160px'}, {queue: false, duration: 160});
}, function() {
    $(".cover", this).stop().animate({top: '260px'}, {queue: false, duration: 160});
});

//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid.caption').hover(function() {
    $(".cover", this).stop().animate({top: '160px'}, {queue: false, duration: 160});
}, function() {
    $(".cover", this).stop().animate({top: '220px'}, {queue: false, duration: 160});
});

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/841.html
animate实现6种不同切换遮罩层方法 希望对你有帮助,感谢您的支持!
  • 中国水墨风格的手机滑动翻页专题动画模板

    中国水墨风格的手机滑动翻页专题动画模板

  • html5苹果触屏滑动接电话

    html5苹果触屏滑动接电话

  • html5触屏手机侧边栏滑动导航菜单动画特效

    html5触屏手机侧边栏滑动导航菜单动画特效

  • html5 canvas背景特效鼠标滑动

    html5 canvas背景特效鼠标滑动

  • 一个3d立体逼真的雪花效果特效雪花跟随鼠标滑动效果

    一个3d立体逼真的雪花效果特效雪花跟随鼠标滑动效果

  • 移动端触屏滑动导航菜单

    移动端触屏滑动导航菜单

  • lightSlider轻量级响应式滑动图片插件

    lightSlider轻量级响应式滑动图片插件

  • MovingBoxes滑动放大图片插件

    MovingBoxes滑动放大图片插件

  • QapTcha拖动验证码提交表单

    QapTcha拖动验证码提交表单

  • swipe多种手机触屏滑动效果

    swipe多种手机触屏滑动效果

  • jQuery自定义手机触屏函数

    jQuery自定义手机触屏函数

  • jQuery+cookie仿苏宁每天首页出现广告弹出层

    jQuery+cookie仿苏宁每天首页出现广告弹出层

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2