Я хочу видео в качестве фона между двумя строками текста, но оно позволяет загружать только фотографии - PullRequest
0 голосов
/ 22 апреля 2020

Я хочу, чтобы видео было фоном, но фон меняется каждый раз, когда я пропускаю белый луч. и я хочу поместить видео между двумя лучами (фотографии исправлены), и я хочу, чтобы видео тоже было исправлено. и для автоматического воспроизведения и отключения звука картинки идеально подходят в css, но как мне сделать то же самое для видео? see thet the pic is fixed and stays the same position when I scroll enter image description here I want the video to be on the place of the pic where she holds 2 plates

[! [

.delice-bg {
  background: url(../images/delice.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-block;
  width: 100%;
  float: left;
  padding: 190px 0;
}

.video-time {
  background: url(../video/delicesdanvers.gif);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover; 
  margin-top: 40px;}


.taste {
  background: url(../images/teste-bg.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 40px
}
 <section id="top-blog" class="delice-bg">
      <div class="container">
        <div class="row">
          <div class="col-md-12 text-center">
            <h2>Délices</h2>
          </div>
        </div>
      </div>
    </section>

    <section class="about-us">
      <div class="container">
        <div class="row">
          <div class="col-md-12 text-center">
          <h2 class="title">about us</h2>
          <p><strong>As from a young age, Tamara spent most of her time in the kitchen as exploring the secrets of pastry is her favourite hobby. At Désiré de Lille, an Antwerp tea-room with national fame, she worked her way up and eventually became co-owner and manager of it, not least because of her unstoppable dynamism and great cooking talent. In April of 2017, she was featured in an episode from “The great British bake-off”, a program by Paul Hollywood, an English celebrity chef. Mr Hollywood famously ended the episode stating that Antwerp might well be the “food capital of Northern Europe”, words not to be taken lightly!
          </strong></p>
      </div>
  </div>
</div>

        <section class="video-time">
      <div class="container">
        <div class="row">
          <div class="col-md-12 text-center">
            <h2>.</h2>
          </div>
        </div>
      </div>
    </section>  
    

   

    <section class="about-us2">
    <div class="col-md-12 text-center">
    <p><strong>Over the past decades, Tamara has been experimenting many times with different ingredients and tastes which has led to unique recipes that stand out in Belgium and are gaining fast international recognition too. Tamara has constantly been experimenting for 20 years trying to improve the tastes for her most exclusive recipes.</strong></p>
    <a class="h7">.</a>
    <p><strong>Tamara’s fame is spreading fast around the world as she is not only being asked in Europe but has enlightened also<br>
        weddings at the other side of the planet in Goa (India), Bahrein (Middle East) and Bali (Indonesia).</strong></p>

   </div>
</section>
    <section class="delice-bg taste">
      <div class="container">
        <div class="row">
          <div class="col-md-12 text-center">
            <h2>Taste</h2>
          </div>
        </div>
      </div>
    </section>

] 4 ] 4

...