Y
Y
yoyoyoyoyoyoyoyoyoyoyoyoyo2021-04-30 19:57:43
css
yoyoyoyoyoyoyoyoyoyoyoyoyo, 2021-04-30 19:57:43

How to insert an image between svg?

There is svg animation of waves and png animation of pictures. Can this picture be inserted between the waves?
What replaces z-index in this case?

<svg class="editorial"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     viewBox="0 24 150 28"
     preserveAspectRatio="none">

 <defs>
 <path id="gentle-wave"
 d="M-160 44c30 0 
    58-18 88-18s
    58 18 88 18 
    58-18 88-18 
    58 18 88 18
    v44h-352z" />
  </defs>
  <g class="parallax">
   <use xlink:href="#gentle-wave" x="50" y="0" fill="#4579e2"/>
   <use xlink:href="#gentle-wave" x="50" y="3" fill="#3461c1"/>
   <use xlink:href="#gentle-wave" x="50" y="6" fill="#2d55aa"/>  
  </g>
</svg>

svg {
  margin-bottom: -30px;
  height: 150px;
  width: 100%;
}
.volni {
  padding: 0px;
  margin-bottom: 10px;
}
.parallax > use {
  animation: move-forever 12s linear infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
}
.parallax > use:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 9s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 8s;
}
@keyframes move-forever {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}


Well, the usual picture
<img src="./image/catalog/kartinka.png" class="kartinka-img"/>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2021-05-01
@yoyoyoyoyoyoyoyoyoyoyoyoyo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question