CSS Animation
CSS Animation will give a lot of fun to the web page. You can add an SVG animation by redirecting to another page by loading.
Even though today’s websites are more modern because of animations, especially HTML5 and CSS3 brings a lot of fun to the web pages.
Use of Animation?
The Human brain can attention when moving objects than others. We noticed interestingly will follow the all pages.
Although, Animations can add good interaction and good feedback. well, good experienced brings brightly.
In this Post Here to Basics of animations
Want to start to create an animation for your webpage/website?
Keyframes
@keyframes rules that specify the animation mode. It was gradually changing depends on it. It defines styles of animation.
Real Example
section.trans img{width:15px;} .move-top { position: absolute; top: 13%; left: 13%; -webkit-animation: move-top 30s linear infinite; animation: move-top 30s linear infinite } @-webkit-keyframes move-top { 0% { -webkit-transform: translate(-50px); transform: translate(-50px) } 50% { -webkit-transform: translateX(100px) translateY(-300px); transform: translateX(100px) translateY(-300px) } 100% { -webkit-transform: translate(-50px); transform: translate(-50px) } }
div { width: 50px; height: 5px; background: red; position: relative; animation: mymove 5s infinite; }
@keyframes mymove { from {left: 0px;} to {left: 200px;} }
The transition elements example is given below. It will give more power full to the user experience to you websites.
CSS Animation Properties
animation-name:
.className{animation-name: moveUp}
animation-delay:
.className{animation-delay: 2s;}
animation-direction
animation-duration
animation-timing
animation-iteration
animation-fill-mode
animation-play-state