Фоновое изображение появляется между контентом при увеличении - PullRequest
0 голосов
/ 29 октября 2018

У меня есть это изображение, которое я хочу использовать в качестве фона для страницы индекса. Но когда я масштабирую фоновые изображения, они появляются между полями формы, а не уходят за форму, как это должно быть. тело страницы указателя содержит основной элемент, который состоит из в стороне элемента и секции . Секция содержит две формы, одну для логин и другую для , зарегистрируйтесь с двумя кнопками для одного и того же. Для наглядности смотри приведенный ниже код.

1) Основная проблема, с которой я сталкиваюсь, заключается в увеличении масштаба приблизительно до 400%. Фоновое изображение появляется между полями «электронная почта» и «пароль» формы логина (активная) при увеличении. Я хочу, чтобы фоновое изображение действительно находилось в фоновом режиме и оставалось позади всего содержимого main тег, т.е. в основном за всей формой и сторонним изображением.

2) Кроме того, при увеличении изображения вы можете заметить, что кнопка входа или регистрация не отображаются в конце формы, а отображаются посередине с большим пустым пространством под ним. Я хочу, чтобы эти кнопки находились в самом низу формы при увеличении.

3) Наконец, можно также заметить, как верхняя часть изображения svg, которое я использовал в теге aside, обрезается при увеличении и изменении положения. При этом вводный текст под svg также появляется за якорными тегами «LOGIN» и «SIGN UP» при увеличении. Было бы лучше, если бы все они не перекрывались или не обрезались.

P.S.- Я использовал inline svg . Поэтому пропустите или сложите длинный фрагмент кода SVG, чтобы не испытывать мучений. (* Брауни указывает на того, кто может подсказать, как использовать внешний SVG с работающей анимацией. Я пробовал object , embed и img но безрезультатно *).

Вы можете использовать любое загруженное изображение в качестве фона, поместив его в папку img и присвоив ему имя " bg-index.jpeg ".

HTML / JSP

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

<head>
    <title>Login << Exam Nation</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <meta name="description" content="Take an Exam--Test Yourself | Exam Nation " />
    <meta name="keywords" content="exam nation, online examination system, log in, sign up, index, default page, fallback page" />
    <meta name="author" content="Akash Das" />
<!--===============================================================================================-->  
    <script src="https://use.typekit.net/lkh0ago.js"></script>
<!--===============================================================================================-->  
    <script>try{Typekit.load({ async: true });}catch(e){}</script>
<!--===============================================================================================-->
    <link rel="shortcut icon" href="img/icons/favicon.ico" type="image/x-icon">
<!--===============================================================================================-->      
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<!--===============================================================================================-->  
    <link rel="stylesheet" href="css/style.css">
<!--===============================================================================================-->  
</head>

<!--style="background: url(img/bg-index.jpeg) no-repeat center center fixed; background-size: cover; height: 100%; overflow: hidden;"-->
<body>

<main ontouchstart class="with-hover">
    <aside>
        <div></div>
        <svg viewBox="0 0 100 100">
        <g stroke="#fff" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round">
            <path d="M65.892702,73 C70.3362168,68.5836139 73.0845878,62.4824333 73.0845878,55.7432553 C73.0845878,49.0040774 70.3362168,42.9028968 65.892702,38.4865107 C61.4491873,34.0701246 55.3105288,31.338533 48.5299539,31.338533 C41.749379,31.338533 35.6107205,34.0701246 31.1672058,38.4865107 C26.723691,42.9028968 23.97532,49.0040774 23.97532,55.7432553 C23.97532,62.4824333 26.723691,68.5836139 31.1672058,73 C31.1672058,73 65.892702,73 65.892702,73 Z M73.0594097,62.3985471 C76.4680437,61.2200182 88.5607213,56.1793944 85.5117743,37.8371245 L81.6924976,37.9360303 C80.8526284,43.134546 77.152648,46.6051883 72.4845099,46.6051883 M24.4062209,60.319036 C24.3904842,60.3191058 24.3747393,60.3191408 24.3589862,60.3191408 C18.6378761,60.3191408 14,55.70958 14,50.0233985 C14,44.3372171 18.6378761,39.7276563 24.3589862,39.7276563 C26.0569266,39.7276563 27.6594543,40.133673 29.0736464,40.8533508 M65.8946819,38.4867877 L31.1652244,38.4844448 M37.6782363,44.9577899 C34.9010396,47.7180312 33.1833077,51.5312691 33.1833077,55.7432553 C33.1833077,59.9552416 34.9010396,63.7684794 37.6782363,66.5287208 M45.4606247,29.0505903 L51.5992831,29.0505903 M48.5299539,26 L48.5299539,31.338533"></path>
        </g>
    </svg>
        <div>
            <p id="intro-signup"><br/>Be a citizen of&nbsp;<strong>Exam Nation</strong> with&nbsp;an&nbsp;account.</p>
            <p id="intro-login" class="active"><br/>Welcome back to<br/><strong>Exam Nation</strong>!</p>
        </div>
    </aside>
    <section>
        <h1>
            <a id="link-login" class="active">Login</a>
            <a id="link-signup">Register</a>
        </h1>
        <form id="form-signup" action="test1.html" method="POST">
            <div>
                <fieldset>
                    <div>
                        <label for="name">Name</label>
                        <input id="name" name="name" type="text" placeholder="Full Name" required/>
                    </div>
                </fieldset>
                <fieldset>
                    <div>
                        <label for="email">Email</label>
                        <input id="email" name="email" type="email" placeholder="abc@xyz.com" required/>
                    </div>
                </fieldset>
                <fieldset>
                    <div>
                        <label for="password">Password</label>
                        <input id="password" name="password" type="password" placeholder="••••••••" required/>
                    </div>
                </fieldset>
            </div>

            <ul>
                <li>
                    <button class="fb">Connect with Facebook</button>
                </li>
                <li>
                    <button class="tw">Connect with Twitter</button>
                </li>
            </ul>

            <input type="submit" value="Sign Up"/>
        </form>
        <form id="form-login" class="active" action="test2.html" method="POST">
            <div>
                <fieldset>
                    <div>
                        <label for="email">Email</label>
                        <input id="email" name="email" type="email" placeholder="abc@xyz.com" required/>
                    </div>
                </fieldset>
                <fieldset>
                    <div>
                        <label for="password">Password</label>
                        <input id="password" name="password" type="password" placeholder="••••••••" required/>
                    </div>
                </fieldset>
            </div>

            <ul>
                <li>
                    <button class="fb">Connect with Facebook</button>
                </li>
                <li>
                    <button class="tw">Connect with Twitter</button>
                </li>
            </ul>

            <input type="submit" value="Log In"/>
        </form>
    </section>
</main>
<!--===============================================================================================-->
    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<!--===============================================================================================-->
    <script  src="js/index.js"></script>
<!--===============================================================================================-->
</body>

</html>

CSS

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*:focus {
  outline: none !important;
}

body, html {
  height: 100%;
}

body {
  background: url(../img/bg-index.jpeg) no-repeat center center;
  background-size: cover;
  height: 100%;
  overflow: auto;
  margin: 0;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  color: #857567;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  background: white;
  height: 100%;
}
main aside {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  height: calc(100% / 3);
  padding: 12px;
  background: #DFB72C url("../img/table-pc.jpg") no-repeat center center/cover;
}
.
.
.
main aside svg {
  position: relative;
  margin-top: -24px;
  width: 120px;
  height: 120px;
}
main aside p {
  position: relative;
  width: 100%;
  padding : 5px;
  margin: 0;
  color: white;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 10px rgba(133, 117, 103, 0.5);
}
main aside p strong {
  font-weight: 700;
}
main section form input[type="submit"] {
  display: block;
  align-self: flex-end;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  text-transform: capitalize;
  line-height: 2;
  background: #DFB72C;
  color: white;
  cursor: pointer;
}
.
.
.
@media only screen and (min-width: 624px) {
  body {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: url(../img/bg-index.jpeg) no-repeat center center;
    background-size: cover;
    height: 100%;
    overflow: auto;
  }

  main {
    display: flex;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    max-height: 370px;
    box-shadow: 0 0 10px rgba(56, 54, 53, 0.5);
  }

SCREENSHOTS

а. Страница входа без увеличения Login Page without zoom б. Страница входа с 500% увеличением Page with 500% zoom с. Страница входа с увеличением 400% Page with 400% zoom * * Д тысяча шестьдесят-восемь. Белый странный пробел после входа в систему при 500% увеличении White weird space after the log in button on 500% zoom е. При увеличении вступительный текст идет за якорями LOGIN & REGISTER. Изображение SVG обрезано. On zooming in, the intro-text goes behind the LOGIN & REGISTER anchors. The svg image is cut off.

РЕДАКТИРОВАТЬ: - Полный код CSS (за исключением ключевых кадров webkit), см. Ответ ниже. Я также приложил фоновое изображение.

1 Ответ

0 голосов
/ 29 октября 2018

Вот полный код CSS. Я достиг предела количества слов для вопроса.

CSS

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*:focus {
  outline: none !important;
}

body, html {
  height: 100%;
}

body {
  background: url(../img/bg-index.jpeg) no-repeat center center;
  background-size: cover;
  height: 100%;
  overflow: auto;
  margin: 0;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  color: #857567;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  background: white;
  height: 100%;
}
main aside {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  height: calc(100% / 3);
  padding: 12px;
  background: #DFB72C url("../img/table-pc.jpg") no-repeat center center/cover;
}
main aside div:empty {
  opacity: 0.5;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #DFB72C url("../img/table-pc.jpg") no-repeat center center/cover;
  background-blend-mode: screen;
}
main aside svg {
  position: relative;
  margin-top: -24px;
  width: 120px;
  height: 120px;
}
main aside div:not(:empty) {
  position: relative;
  width: 100%;
  margin-top: -24px;
}
main aside p {
  position: relative;
  width: 100%;
  padding : 5px;
  margin: 0;
  color: white;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 10px rgba(133, 117, 103, 0.5);
}
main aside p strong {
  font-weight: 700;
}
main aside p:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
}
main aside p.active {
  visibility: visible;
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}
main aside p:not(.active) {
  visibility: hidden;
  opacity: 0;
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
}
main section {
  position: relative;
  height: calc(100% / 3 * 2);
}
main section h1 {
  display: flex;
  justify-content: center;
  padding: 18px;
  color: #DFB72C;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
main section h1 a {
  display: block;
  margin: 0 6px;
  cursor: pointer;
  -webkit-transform: none;
          transform: none;
}
main section h1 a:hover, main section h1 a:focus {
  color: #976a36;
}
main section h1 a:active {
  color: #857567;
}
main section h1 a.active {
  font-weight: 500;
}
main section h1 a:not(.active) {
  font-weight: 300;
}
main section form {
  display: flex;
  flex-flow: row wrap;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
}
main section form > div, main section form > ul {
  width: 100%;
  padding: 6px;
}
main section form fieldset {
  padding: 6px;
}
main section form fieldset div {
  display: flex;
  border-radius: 2px;
  overflow: hidden;
}
main section form fieldset div label {
  display: block;
  margin: 0;
  padding: 6px 9px;
  background: #DFB72C;
  color: white;
  font-size: 16px;
  cursor: pointer;
  line-height: 25px;
}
main section form fieldset div input {
  display: block;
  background: white;
  border: 1px solid #DFB72C;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  box-shadow: none;
  margin: 0;
  padding: 6px 9px;
  width: 100%;
  color: #857567;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}
main section form fieldset div input::-webkit-input-placeholder {
  color: rgba(133, 117, 103, 0.4);
}
main section form fieldset div input:-ms-input-placeholder {
  color: rgba(133, 117, 103, 0.4);
}
main section form fieldset div input::-ms-input-placeholder {
  color: rgba(133, 117, 103, 0.4);
}
main section form fieldset div input::placeholder {
  color: rgba(133, 117, 103, 0.4);
}
main section form fieldset div input:focus {
  background: rgba(233, 226, 213, 0.5);
}
main section form fieldset div input:focus::-webkit-input-placeholder {
  color: rgba(133, 117, 103, 0.6);
}
main section form fieldset div input:focus:-ms-input-placeholder {
  color: rgba(133, 117, 103, 0.6);
}
main section form fieldset div input:focus::-ms-input-placeholder {
  color: rgba(133, 117, 103, 0.6);
}
main section form fieldset div input:focus::placeholder {
  color: rgba(133, 117, 103, 0.6);
}
main section form li {
  padding: 6px;
}
main section form li button {
  display: block;
  margin: 0 auto;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  border: 0;
  border-radius: 100px;
  color: white;
  font-size: 16px;
  padding: 6px 12px;
  cursor: pointer;
}
main section form li button.fb {
  background: #3b5998;
}
main section form li button.fb:hover, main section form li button.fb:focus {
  background: #5f7ec1;
}
main section form li button.fb:active {
  background: #263961;
}
main section form li button.tw {
  background: #00aced;
}
main section form li button.tw:hover, main section form li button.tw:focus {
  background: #3bc9ff;
}
main section form li button.tw:active {
  background: #0074a1;
}
main section form input[type="submit"] {
  display: block;
  align-self: flex-end;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  font-family: "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  text-transform: capitalize;
  line-height: 2;
  background: #DFB72C;
  color: white;
  cursor: pointer;
}
main section form input[type="submit"]:hover, main section form input[type="submit"]:focus {
  background: #976a36;
}
main section form input[type="submit"]:active {
  background: #857567;
}
main section form.active {
  opacity: 1;
  z-index: 1;
}
main section form.active fieldset, main section form.active li, main section form.active input[type="submit"] {
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
  opacity: 1;
}
main section form:not(.active) {
  opacity: 0;
  z-index: 0;
}
main section form:not(.active) fieldset, main section form:not(.active) li, main section form:not(.active) input[type="submit"] {
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
  opacity: 0;
}
main.with-hover aside p {
  transition: all 250ms ease-out;
}
main.with-hover section h1 a {
  transition: all 150ms ease-out;
}
main.with-hover section h1 a:hover, main.with-hover section h1 a:focus {
  transition: all 300ms ease-out;
}
main.with-hover section h1 a:active {
  transition: all 150ms ease-in;
}
main.with-hover section form {
  transition: all 1000ms ease-out;
}
main.with-hover section form fieldset, main.with-hover section form li, main.with-hover section form input[type="submit"] {
  transition: all 500ms ease-out;
}
main.with-hover section form button, main.with-hover section form input {
  transition: all 150ms ease-out;
}
main.with-hover section form button:hover, main.with-hover section form button:focus, main.with-hover section form input:hover, main.with-hover section form input:focus {
  transition: all 300ms ease-out;
}
main.with-hover section form button:active, main.with-hover section form input:active {
  transition: all 150ms ease-in;
}
main.with-hover section form.active#form-signup fieldset:nth-child(2) {
  transition-delay: 50ms;
}
main.with-hover section form.active#form-signup fieldset:nth-child(3) {
  transition-delay: 100ms;
}
main.with-hover section form.active#form-signup li:nth-child(1) {
  transition-delay: 150ms;
}
main.with-hover section form.active#form-signup li:nth-child(2) {
  transition-delay: 200ms;
}
main.with-hover section form.active#form-signup input[type="submit"] {
  transition-delay: 250ms;
}
main.with-hover section form.active#form-login fieldset:nth-child(2) {
  transition-delay: 50ms;
}
main.with-hover section form.active#form-login li:nth-child(1) {
  transition-delay: 100ms;
}
main.with-hover section form.active#form-login li:nth-child(2) {
  transition-delay: 150ms;
}
main.with-hover section form.active#form-login input[type="submit"] {
  transition-delay: 200ms;
}
main.with-hover section form:not(.active)#form-signup fieldset:nth-child(1) {
  transition-delay: 250ms;
}
main.with-hover section form:not(.active)#form-signup fieldset:nth-child(2) {
  transition-delay: 200ms;
}
main.with-hover section form:not(.active)#form-signup fieldset:nth-child(3) {
  transition-delay: 150ms;
}
main.with-hover section form:not(.active)#form-signup li:nth-child(1) {
  transition-delay: 100ms;
}
main.with-hover section form:not(.active)#form-signup li:nth-child(2) {
  transition-delay: 50ms;
}
main.with-hover section form:not(.active)#form-login fieldset:nth-child(1) {
  transition-delay: 200ms;
}
main.with-hover section form:not(.active)#form-login fieldset:nth-child(2) {
  transition-delay: 150ms;
}
main.with-hover section form:not(.active)#form-login li:nth-child(1) {
  transition-delay: 100ms;
}
main.with-hover section form:not(.active)#form-login li:nth-child(2) {
  transition-delay: 50ms;
}
main.pre-enter aside {
  -webkit-transform-origin: center top;
          transform-origin: center top;
  -webkit-transform: scaleY(0);
          transform: scaleY(0);
  visibility: hidden;
}
main.pre-enter aside svg {
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-transform: scale(0) rotate(90deg);
          transform: scale(0) rotate(90deg);
  visibility: hidden;
}
main.pre-enter aside p.active {
  opacity: 0;
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
  visibility: hidden;
}
main.pre-enter section h1 a {
  visibility: hidden;
  opacity: 0;
}
main.pre-enter section h1 a:first-child {
  -webkit-transform-origin: right center;
          transform-origin: right center;
  -webkit-transform: translateX(200px) scaleX(0);
          transform: translateX(200px) scaleX(0);
}
main.pre-enter section h1 a:last-child {
  -webkit-transform-origin: left center;
          transform-origin: left center;
  -webkit-transform: translateX(-200px) scaleX(0);
          transform: translateX(-200px) scaleX(0);
}
main.pre-enter section form fieldset, main.pre-enter section form li {
  opacity: 0;
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
  visibility: hidden;
}
main.pre-enter section form input[type="submit"] {
  -webkit-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-transform: scaleY(0);
          transform: scaleY(0);
  color: #DFB72C;
  visibility: hidden;
}
main.on-enter aside {
  -webkit-animation: scaleYIn 1000ms linear forwards;
          animation: scaleYIn 1000ms linear forwards;
  visibility: visible;
}
main.on-enter aside svg {
  -webkit-animation: bounceIn-rotate 1000ms linear forwards 250ms;
          animation: bounceIn-rotate 1000ms linear forwards 250ms;
  visibility: visible;
}
main.on-enter aside p.active {
  -webkit-animation: slideInUp-fadeIn 1000ms linear forwards 500ms;
          animation: slideInUp-fadeIn 1000ms linear forwards 500ms;
  visibility: visible;
}
main.on-enter section h1 a {
  visibility: visible;
}
main.on-enter section h1 a:first-child {
  -webkit-animation: scaleX-slideInRight 1000ms linear forwards 750ms;
          animation: scaleX-slideInRight 1000ms linear forwards 750ms;
}
main.on-enter section h1 a:last-child {
  -webkit-animation: scaleX-slideInLeft 1000ms linear forwards 750ms;
          animation: scaleX-slideInLeft 1000ms linear forwards 750ms;
}
main.on-enter section form fieldset, main.on-enter section form li {
  -webkit-animation: slideInUp-fadeIn 1000ms linear forwards;
          animation: slideInUp-fadeIn 1000ms linear forwards;
  visibility: visible;
}
main.on-enter section form fieldset:nth-child(1) {
  -webkit-animation-delay: 1250ms;
          animation-delay: 1250ms;
}
main.on-enter section form fieldset:nth-child(2) {
  -webkit-animation-delay: 1350ms;
          animation-delay: 1350ms;
}
main.on-enter section form fieldset:nth-child(3) {
  -webkit-animation-delay: 1450ms;
          animation-delay: 1450ms;
}
main.on-enter section form li:nth-child(1) {
  -webkit-animation-delay: 1550ms;
          animation-delay: 1550ms;
}
main.on-enter section form li:nth-child(2) {
  -webkit-animation-delay: 1650ms;
          animation-delay: 1650ms;
}
main.on-enter section form input[type="submit"] {
  -webkit-animation: scaleYIn 1000ms linear forwards 1750ms, lemon-white 250ms linear forwards 2150ms;
          animation: scaleYIn 1000ms linear forwards 1750ms, lemon-white 250ms linear forwards 2150ms;
  visibility: visible;
}

@media only screen and (min-width: 624px) {
  body {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: url(../img/bg-index.jpeg) no-repeat center center;
    background-size: cover;
    height: 100%;
    overflow: auto;
  }

  main {
    display: flex;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    max-height: 370px;
    box-shadow: 0 0 10px rgba(56, 54, 53, 0.5);
  }
  main aside, main section {
    height: 100%;
    width: 300px;
  }
  main.pre-enter {
    opacity: 0;
    visibility: hidden;
  }
  main.pre-enter aside {
    -webkit-transform: none;
            transform: none;
  }
  main.on-enter {
    -webkit-animation: slideDown-fadeIn 1000ms linear forwards;
            animation: slideDown-fadeIn 1000ms linear forwards;
    visibility: visible;
  }
  main.on-enter aside {
    -webkit-animation: none;
            animation: none;
  }
}
@-webkit-keyframes lemon-white {
  0% {
    color: #DFB72C;
  }
  100% {
    color: white;
  }
}
@keyframes lemon-white {
  0% {
    color: #DFB72C;
  }
  100% {
    color: white;
  }
}

Фоновое изображение

BG-index.jpeg enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...