[英]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.