Animate CSS border-left-width property
要使用CSS在border-left-width属性上实现动画,您可以尝试运行以下代码
例
现场演示
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <!DOCTYPE html> <html> <head> <style> div { width: 500px; height: 300px; background: yellow; border: 10px solid yellow; border-bottom-right-radius: 100px; border-bottom-width: 30px; background-image: url('https://www.tutorialspoint.com/latest/testrail.png'); animation: myanim 3s infinite; background-position: bottom left; background-size: 50px; } @keyframes myanim { 40% { background-color: maroon; border-bottom-color: green; border-bottom-right-radius: 50px; border-bottom-width: 50px; border-color: red; border-left-color: blue; border-left-width: 35px; } } </style> </head> <body> <p> Performing Animation for border left width </p> </body> </html> |