Jump to content
Sign in to follow this  
bintje

How to use animation feature in CSS3?

Recommended Posts

Hi everyone, I'm newbie in CSS3 and really facinated by its animation features.

I would like to achieve the animation effect in this page:http://www.skyhallfence.com/, can anyone tell me know to do that?

Really thank you guys.

Share this post


Link to post
Share on other sites

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;
}

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • 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.