Answers for "background image animation html"

CSS
2

css animate background image

// use CSS3 @keyframes to animate the background-position
@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
#animate-area {
  width: 200px;
  height: 200px;
  background-image: url(http://placekitten.com/400/200);
  background-position: 0px 0px;
  background-repeat: repeat-x;
  animation: animatedBackground 10s linear infinite alternate;
}

<div id="animate-area"></div>
Posted by: Guest on May-19-2021
0

html animated background

<video id="video" autoplay="true" loop muted>
      <source src="background.mp4" type="video/mp4"/>
    </video>
Posted by: Guest on February-02-2022

Browse Popular Code Answers by Language