Jump to content

How to use animation feature in CSS3?


bintje

Recommended Posts

  • 1 month later...

Use this code and get demo of animation feauture in css3 :

@keyframes resize {
  0% {
    padding: 0;
  }
  50% {
    padding: 0 20px;
    background-color:rgba(255,0,0,0.2);
  }
  100% {
    padding: 0 100px;
    background-color:rgba(255,0,0,0.9);
  }
}

#box {
  animation-name: resize;
  animation-duration: 1s;
  animation-iteration-count: 4;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}

  • 1 month later...

i havent looked into the example you linked bintje but you certainly could achieve most, if not all, of thsoe animations with CSS3:

https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_animations

https://css-tricks.com/almanac/properties/a/animation/

 

animations are tricky to work with in the current browser environment.  they are not fully supported yet and such.  i know of particular issues with mobile IOS 8.x.x.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.