_home-header.scss 3.16 KB
@keyframes turn {
    1% {
        transform: rotateX(90deg);
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    2% {
        transform: rotateX(180deg);
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    50% {
        transform: rotateX(180deg);
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    51% {
        transform: rotateX(90deg);
        background: image-url("yohologo02.png") no-repeat center center;
        background-size: 100%;
    }

    52% {
        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("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    2% {
        -webkit-transform: rotateX(180deg);
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    50% {
        -webkit-transform: rotateX(180deg);
        background: image-url("yohologo01.png") no-repeat center center;
        background-size: 100%;
    }

    51% {
        -webkit-transform: rotateX(90deg);
        background: image-url("yohologo02.png") no-repeat center center;
        background-size: 100%;
    }

    52% {
        -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%;
    }
}

.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: 100%;
        background: image-url("yohologo02.png") no-repeat center center;
        background-size: 100%;
        animation: 60s turn infinite;
        -webkit-animation: 60s turn infinite;
    }

    .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;
}