[英]Flyout effect on image
这是链接http://t3n.de/news/billig-rechner-intel-compute-stick-587589/
在此页面的左侧底行上,有一个像信封的图像。 当您将鼠标悬停在此图像上时,该图像将弹出。 我不确定这叫什么效果? 实际上我在项目中需要这种效果。 我怎样才能做到这一点?
在jQuery中,您可以这样做:
$('.flyout').on('mouseenter', function(){
$(this).animate({
bottom: '0px'
});
});
CSS:
.flyout{
position: fixed;
bottom: -70px;
height: 70px;
}
为了在滚动时再次隐藏它:
$(document).on('scroll',function(){
$('.flyout').animate({
bottom: '-70px';
});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.