自适应服装类企业网站效果

代码语言:html

所属分类:布局界面

代码描述:自适应服装类企业网站效果

代码标签: 企业网站 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
:root {
    --brand-color:#FFF;
}
body,html {
    height:100%;
    font-size:16px;
}
body {
    margin:0;
    font-family:'Nunito';
    overflow-x:hidden;
}
button {
    font-family:'Nunito';
}
h3 {
    display:block;
    font-size:2rem;
    margin:1rem 0;
}
h3,h4 {
    font-weight:400;
}
p {
    font-weight:300;
    text-align:left;
}
a {
    text-decoration:none;
    color:inherit;
}
button {
    display:block;
    margin:15px 0;
    position:relative;
    background:none;
    border:none;    
    font-size:1rem;
    padding:0;
    cursor:pointer;
}
img {
   width:100%; 
   display:block;
}
/* LAYOUT */ 
.grid-container {
    max-width:1170px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(365px,1fr));
    grid-gap:35px;
    text-align:center;
    margin:35px auto;
    padding: 0 15px;
}
.grid-item {
    overflow: hidden;
}
.centered {
    display: -webkit-box;
    display: flex;
    -webkit-box-align:start;
            align-items:start;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column; 
}
@media screen and (max-width:768px) {
    .grid-container {
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
}
/* BUTTONS */
.arrow-btn {
    position:relative;
    text-align:left;
}
.arrow-btn span {
    position:relative; 
}
.arrow-btn:hover span:before {
    -webkit-transform:translateX(10px);
            transform:translateX(10px);
}
.arrow-btn:hover span:after {
    -webkit-transform:translateX(10px) rotate(-135deg);
            transform:translateX(10px) rotate(-135deg);
}
.arrow-btn span:before {
    content: "";
    position: absolute;
    top: 10px;
    height: 2px;
    width: 22px;
    background: #000;
    left: 11px;
    -webkit-transition:0.16s ease;
    transition:0.16s ease;
}
.arrow-btn span:after {
    content:"";
    position:absolute;
    top:8px;
    right:-36px;
    border-width:3px;
    border-style:solid;
    border-color:transparent transparent #000 #000;
    -webkit-transform:rotate(-135deg);
            transform:rotate(-135deg);
    -webkit-transition:0.16s ease;
    transition:0.16s ease;
}
/* SECTIONS */ 
.arrivals,.quote,.fashion,.modern {
    padding:45px 0px;
}
.info h3, .arrivals h3, .fashion h3, .quote h3 {
    color: #000;
    font-size: 1.5rem;
    width: 100%;
    text-align: left;
}
/* PRELOADER */
.preloader {
    position:fixed;
    top:0;
    left:0;
    height:100%;
    width:100%;
    z-index:2;
    display:-webkit-box;
    display:flex;
    -webkit-box-align:center;
            align-items:center;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
            flex-direction:column;
}
.preloader:before {
    content:"";
    position:fixed;
    width:50%;
    height:100%;
    background:#FFF;
    z-index:2;
    left:0;
    top:0;
    -webkit-transition:0.72s ease transform 0.16s;
    transition:0.72s ease transform 0.16s;
}
.preloader:after {
    content:"";
    position:fixed;
    width:50%;
    height:100%;
    background:#FFF;
    z-index:2;
    right:0;
    top:0;
    -webkit-transition:0.72s ease transform 0.16s;
    transition:0.72s ease transform 0.16s;
}
body[data-loading="false"] .preloader {
    visibility:hidden;
    -webkit-transition:0.01s visibility 0.88s;
    transition:0.01s visibility 0.88s;
}
body[data-loading="false"] .preloader:before {
    -webkit-transform:translateX(-100%);
            transform:translateX(-100%);
}
body[data-loading="false"] .preloader:after {
    -webkit-transform:translateX(100%);
            transform:translateX(100%);
}
.preloader-icon {
  width:52px;
  height:52px;
  z-index:3;
  -webkit-transition:0.16s ease opacity;
  transition:0.16s ease opacity;
}
body[data-loading="false"] #g1 line {
    -webkit-animation-play-state:paused;
            animation-play-state:paused;
}
body[data-loading="false"] #g2 line {
    -webkit-animation-play-state:paused;
            animation-play-state:paused;
}
body[data-loading="false"] .preloader-icon {
    -webkit-animation-play-state:paused;
            animation-play-state:paused;
    opacity:0;
}
.preloader-icon line {
  stroke-dasharray:40px;
  stroke-dashoffset:40px;
}
#g1 line {
  -webkit-animation:2s animateLoader infinite;
          animation:2s animateLoader infinite;
}
#g2 line {
  -webkit-animation:2s animateLoader infinite 1s;
          animation:2s animateLoader infinite 1s;
}
.preloader-icon {
  -webkit-animation:4s rotate infinite;
          animation:4s rotate infinite;
}
@-webkit-keyframes animateLoader {
  0% {
    stroke-dashoffset:40px;
    stroke-dasharray:40px;

  }
  50% {
    stroke-dashoffset:0px;
    stroke-dasharray:40px;

  }
  100% {
    stroke-dashoffset:80px;
    stroke-dasharray:40px;

  }
}
@keyframes animateLoader {
  0% {
    stroke-dashoffset:40px;
    stroke-dasharray:40px;

  }
  50% {
    stroke-dashoffset:0px;
    stroke-dasharray:40px;

  }
  100% {
    stroke-dashoffset:80px;
    stroke-dasharray:40px;

  }
}
@-webkit-keyframes rotate {
  0% {
    -webkit-transform:rotate(0deg);
            transform:rotate(0deg)
  }
  50% {
    -webkit-transform:rotate(90deg);
            transform:rotate(90deg)
  }
  100% {
    -webkit-transform:rotate(180deg);
            transform:rotate(180deg)
  }
}
@keyframes rotate {
  0% {
    -webkit-transform:rotate(0deg);
            transform:rotate(0deg)
  }
  50% {
    -webkit-transform:rotate(90deg);
            transform:rotate(90deg)
  }
  100% {
    -webkit-transform:rotate(180deg);
            transform:rotate(180deg)
  }
}
/* NAVIGATION */
nav {
    display:-webkit-box;
    display:flex;
    -webkit-box-pack: justify;
            justify-content: space-between;
    -webkit-box-align:center;
            align-items:center;
    height:70px;
    width:100%;
    position:absolute;
    z-index:1;
    -webkit-transition:0.3s ease transform;
    transition:0.3s ease transform;
}
.fixed-top {
    position: fixed;
    background: #FFF;
    box-shadow: 0px 0px 15px 3px rgba(0,0,0,0.05);
    width: 100%;
}
ul {
    list-style-type: none;
    width: 30%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    -webkit-box-pack: space-evenly;
            justify-content: space-evenly;
    padding-left:30px;
    height:70px;
}
li {
    display:inline-block;
}
.nav-link {
    position:relative;
    padding:15px 0px;
    display:-webkit-box;
    display:flex;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
            align-items: center;
}
.active {
    font-weight:700;
}
.navbar-left {
    background:#FFF;
}
@media screen and (min-width:769px) {
    .nav-link:before,.nav-link:after {
        content:"";
        position:absolute;
        width:50%;
        top:57px;    
        height:2px;
        background:#000;
        width:0%;
        opacity:0;
        -webkit-transition:0.16s ease;
        transition:0.16s ease;
    }
    .nav-link:before {
        right:50%;
    }
    .nav-link:after {
        left:50%;
    }
    .navbar-left .nav-link:hover:before {
        width:50%;
        opacity:1;
    }
    .navbar-left .nav-link:hover:after {
        width:50%;
        opacity:1;
    }
}
.navbar-right {
    background: transparent;
    width:20%;
    padding-left:0px;
}
.brand {
    display:block;
    color: var(--brand-color);
}
svg {
    width: 1.25rem;
    height: 1.25rem;  
}
#shop-icon,#user-icon {
    fill:var(--brand-color);
}
.navbar-burger-btn span {
    position: absolute;
    left:0px;
    width: 20px;
    height: 2px;
    background: #000;
    border-radius:2px;
    -webkit-transition:0.24s ease all;
    transition:0.24s ease all; 
}
.navbar-burger-btn span:first-child {
    top:3px;
}
.navbar-burger-btn span:nth-chi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0