The animation isn't working as expected. Please help...
MY CODE: <!DOCTYPE html> <html> <head> <title>Page Title</title> <style> .loader-1 { display: inline-block; background-color: black; color: black; height: 100; width: 10; animation: heightchange 2s linear infinite; } #line-1 { animation-delay: 0s; } #line-2 { animation-delay: 0.5s; } #line-3 { animation-delay: 1s; } #line-4 { animation-delay: 1.5s; } @keyframes heightchange { 0% {height: 100} 50% {height: 50} 100% {height: 100} } </style> </head> <body> <div id="line-1" class="loader-1"></div> <div id="line-2" class="loader-1"></div> <div id="line-3" class="loader-1"></div> <div id="line-4" class="loader-1"></div> </body> </html> -------------------------- I don't want the bars jumping. I tried everything I know, but it still doesn't work. Please help. Thanks! [P.S: Run the code and see.]