纯css filter实现菜单悬浮放大滤镜动画效果代码

代码语言:html

所属分类:悬停

代码描述:纯css filter实现菜单悬浮放大滤镜动画效果代码

代码标签: 实现 菜单 悬浮 放大 滤镜 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  
  <link href="https://fonts.googleapis.com/css?family=Oswald:700|Droid+Serif:400,700italic" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
  
  
  
  
<style>
body {
background:url(https://lh4.googleusercontent.com/I5fqiqHgL1BT6HC9P4ST1hk-4A2FFoQ7-VNXAgPGcH8=w311-h207-p-no) no-repeat center center fixed;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://lh4.googleusercontent.com/I5fqiqHgL1BT6HC9P4ST1hk-4A2FFoQ7-VNXAgPGcH8=w311-h207-p-no');
-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://lh4.googleusercontent.com/I5fqiqHgL1BT6HC9P4ST1hk-4A2FFoQ7-VNXAgPGcH8=w311-h207-p-no",sizingMethod='scale')";;
}
.menu{
  margin:100px auto auto 70px;
  background:tranparent;
  width:auto;}
.nav{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  text-decoration:none;
  display:inline;
  height: 120px;width:120px;
  margin: 2px 0px 0px 2px;
  overflow: hidden;
  float:left;
  text-align: center;
  background:#66415C;
  color: #fff;
  transition: all .2s ease, box-shadow .5s ease;
  -webkit-transition: all .2s ease,box-shadow 5.s ease;
  box-shadow: 0px 0px 0px 0px rgba(255,255,255,.5),0px 0px 0px 0px rgba(255,255,255,1);
  cursor: pointer;}
.nav:hover {
    background: rgba(255,255,255,.5);
    color: #66415C;;
    box-shadow: 0px 0px 0px 20px rgba(255,255,255,.........完整代码请登录后点击上方下载按钮下载查看

网友评论0