Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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>
Comment

PREVIOUS NEXT
Code Example
Css :: pointer-events 
Css :: how to define max number of character for a paragraph css 
Css :: how to make smth be in the bottom of the page css 
Css :: css background image svg not showing 
Css :: transition shorthand css 
Css :: css on hover do something to children 
Css :: css border botttom 
Css :: elementor is swiping 
Css :: grid repeating auto columns 
Css :: how to add background image in styled components 
Css :: Conditionally loading resources with media queries 
Css :: input start typing in the center 
Css :: how to css with data arrtibute 
Css :: decrease space between paragraphs html 
Css :: null vs void 
Css :: how to split a background into two color in css 
Css :: rgba blue color 
Css :: background color css rgb 
Css :: tailwind border color with gradient 
Css :: left and right box shadow only 
Css :: css blur 
Css :: crop img css 
Css :: select all class in css 
Css :: pointer events none and cursor not allowed 
Css :: autocomplete background color css 
Css :: background image css stack overflow 
Css :: i used overflow-y : scroll but the scroll bar keep on showing 
Css :: scss breakpoints 
Css :: rotate element css 
Css :: css nth element 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =