css entrance animation code example

Example 1: how to make animation stay on 100%

animation-fill-mode:forwards;

Example 2: css animation

CSS animation properties template:
{
   animation-name: anima-name;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-delay: 2s;
    animation-direction: reverse | normal | alternate | alternate-reverse ; 
  animation-timing-function: ease | ease-out | ease-in | ease-in-out | linear | cubic-bezier(x1, y1, x2, y2) (e.g. cubic-bezier(0.5, 0.2, 0.3, 1.0)); 
  animation-fill-mode:forwards | backwards | both | none;
}
@keyframes anima-name {
  from {
   background-position:right;
  }
  to {
    background-position:left;
  }
}
@keyframes anima-name {
  0% {
    background-color: red;
  }
  50% {
    background-color: green;
  }
  100% {
    background-color: red;
  }
}

Example 3: css animation library

/* Answer to: "css animation library" */

/*
  There are an awful lot of libraries that want to help you animate
  things on the web. These aren’t really libraries that help you
  with the syntax or the technology of animations, but rather are
  grab-and-use as-is libraries. Want to apply a class like
  “animate-flip-up” and watch an element, uhhh, flip up? These are
  the kind of libraries to look at.

  1. Animista (personal favourite)
  2. Animate.css
  3. Tachyons
  4. Infinite
  5. Motion UI
  6. Micron
  7. Vivify
  9. Hover.css
  10. AllAnimationCss3
  11. Magic Animations CSS3
  12. It's Tuesday
  13. CHS
  14. ReboundGen
  15. CSShake
  16. Motion CSS
  17. cssanimation.io
  18. WickedCSS
  19. Woah.css
  20. Obnoxious.css
  21. Hexa
  22. Mimic.css

  For more information and direct links to the website of these
  libraries, go to:
  https://css-tricks.com/css-animation-libraries/
*/

Example 4: css animation

Read this helpful, short and straightforward article to learn CSS animation perfectly.

https://medium.com/@Cafe_Code/learn-css-animation-asap-as-simple-as-possible-374b7874d4dd

Tags:

Css Example