_home-header.scss 5.62 KB

@keyframes turn {
    1% {
        transform: rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100%
    }
    2% {
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100% 
    }
    3% {
        transform: rotateX(180deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    4% {
        transform: rotateX(90deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    5% {
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    6% {
        transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    100% {
        transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    
}

@-webkit-keyframes turn {
    1% {
        -webkit-transform: rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100%
    }
    2% {
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100% 
    }
    3% {
        -webkit-transform: rotateX(180deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    4% {
        -webkit-transform: rotateX(90deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    5% {
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    6% {
        -webkit-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    100% {
        -webkit-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    
}



@-moz-keyframes turn {
    1% {
        -moz-transform: rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100%
    }
    2% {
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100% 
    }
    3% {
        -moz-transform: rotateX(180deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    4% {
        -moz-transform: rotateX(90deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    5% {
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    6% {
        -moz-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    100% {
        -moz-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
}

@-o-keyframes turn {
    1% {
        -o-transform: rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100%
    }
    2% {
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100% 
    }
    3% {
        -o-transform: rotateX(180deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    4% {
        -o-transform: rotateX(90deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100%
    }
    5% {
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    6% {
        -o-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
    100% {
        -o-transform: rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }
}
.home-header {
    height: 87rem / $pxConvertRem;
    line-height: 87rem / $pxConvertRem;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #323232), color-stop(1, #414141));
    background-image: -moz-gradient(linear, left top, left bottom, color-stop(0, #323232), color-stop(1, #414141));
    background-image: gradient(linear, left top, left bottom, color-stop(0, #323232), color-stop(1, #414141));
    position: relative;
    .iconfont {
        color: #fff;
    }

    .nav-btn {
        position: absolute;
        left: 32rem / $pxConvertRem;
        top: 0;
        bottom: 0;
        z-index: 2;
    }

    .logo {
        display: block;
        margin: 0 auto;
        width: 208rem / $pxConvertRem;
        height: 87rem / $pxConvertRem;
        background: image-url("yohologo02.png") no-repeat center center;
        background-size: 100%;
        animation: 60s turn infinite ease-out;
        -webkit-animation: 60s turn infinite ease-out;
        -moz-animation: 60s turn infinite ease-out;
        -o-animation: 60s turn infinite ease-out;
    } 
    .logo.animate{
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    .search-btn {
        position: absolute;
        right: 32rem / $pxConvertRem;
        top: 0;
        bottom: 0;
    }
}

.girls-wrap .header {
    background: #fd307f;
}

.kids-wrap .logo {
    font-style: italic;
    font-family: "helvetica","Arial","榛戜綋";
    font-weight: bold;
    color: #fff;
}