+ 2

How to add animation in css?

4th Aug 2016, 5:52 AM
Tejas Sanjay Chaudhari
Tejas Sanjay Chaudhari - avatar
2 odpowiedzi
+ 4
html: <div id="id"></div> css: #id { background: red; animation: 300ms Animationname ease-in-out; } @keyframes Animationname { 1% { // here goes animation at 1 % eg: transform: scale (1); } 100% { // here at 100% eg: transform:scale (2); } } this example shows that the div will be scaled up by 2 so if it's size was 200px * 200px. now it's 400px * 400px
4th Aug 2016, 12:27 PM
Kamil
Kamil - avatar
0
we can also use WebKit animations
5th Aug 2016, 1:04 PM
Sai Rajesh Rudravarjula