CSS border-bottom 属性动画
cssweb developmentfront end technology更新于 2024/10/22 10:20:17
要使用 CSS 在 border-bottom 属性上实现动画,您可以尝试运行以下代码:
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 500px;
height: 400px;
background: yellow;
border: 5px dashed yellow;
background-image: url('https://www.cainiaomax.com/latest/microservice_architecture.png');
animation: myanim 3s infinite;
background-position: bottom left;
background-size: 50px;
}
@keyframes myanim {
20% {
background-color: maroon;
background-position: bottom right;
background-size: 90px;
border-bottom: 25px solid orange;
}
}
</style>
</head>
<body>
<h2>Performing Animation for bottom border</h2>
<div></div>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

