Answers for "https://www.w3schools.com css animations"

CSS
20

css animation

<style>
.my-element {
  width: 100%;
  height: 100%;
  animation: tween-color 5s infinite;
}

@keyframes tween-color {
  0% {
    background-color: red;
  }
  50% {
    background-color: green;
  }
  100% {
    background-color: red;
  }
}

html,
body {
  height: 100%;
}
<style>

<body>
	<div class="my-element"></div>
</body>
Posted by: Guest on May-09-2020
2

css animation

# css animaition .................... infinite dont stop

  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: infinite;

@keyframes example {
  0%{transform: rotate(0deg)}
  50% {transform: rotate(5deg)}
  75%{transform: rotate(0deg)}
  100% {transform: rotate(50deg)}
}
Posted by: Guest on March-25-2021
20

css animation

<style>
.my-element {
  width: 100%;
  height: 100%;
  animation: tween-color 5s infinite;
}

@keyframes tween-color {
  0% {
    background-color: red;
  }
  50% {
    background-color: green;
  }
  100% {
    background-color: red;
  }
}

html,
body {
  height: 100%;
}
<style>

<body>
	<div class="my-element"></div>
</body>
Posted by: Guest on May-09-2020
2

css animation

# css animaition .................... infinite dont stop

  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: infinite;

@keyframes example {
  0%{transform: rotate(0deg)}
  50% {transform: rotate(5deg)}
  75%{transform: rotate(0deg)}
  100% {transform: rotate(50deg)}
}
Posted by: Guest on March-25-2021

Code answers related to "https://www.w3schools.com css animations"

Browse Popular Code Answers by Language