css 单行滚动 流水线形式

            .lineScroll {
				    width: 610rpx;
				margin: 0 auto;
				display: flex;
				justify-content: left;
				align-items: center;
				flex-wrap: nowrap;
				overflow-x: scroll;
				position: relative;
				overflow: hidden;
				display: inline-flex;
				margin-left: 60rpx;
				.item {
					margin-right: 40rpx;
					display: inline-flex;
					justify-content: space-between;
					animation: marquee 30s linear infinite;
					flex-shrink: 0;
				}
			}
			@keyframes marquee {
			  0% {
			    transform: translateX(0);
			  }
			  100% {
			    transform: translateX(-100%);
			  }
			}

<!-- 公告 -->
		<view v-if="!closeNavType" class="Gonggao">
			<view class="lineScroll scrolling-text">
				<view v-for="(nav, index) in NavList" :key="index"  class="item"> {{nav.title}}</view>
			</view>
			<view class="closeNav" @click.stop="CloseNav()">×</view>
		</view>
		

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是一个工厂流水线动画的CSS代码示例: ```html <!DOCTYPE html> <html> <head> <title>工厂流水线动画</title> <style type="text/css"> .container { position: relative; width: 800px; height: 600px; margin: 0 auto; background-color: #f2f2f2; overflow: hidden; } .chimney { position: absolute; top: 0; left: 50%; margin-left: -50px; width: 100px; height: 100px; background-color: #333; border-radius: 50%; box-shadow: 0 0 20px #000; animation: smoke 2s ease-in-out infinite; } @keyframes smoke { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(-200px) rotate(360deg); opacity: 0; } } .conveyor-belt { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background-color: #666; animation: conveyor 2s linear infinite; } @keyframes conveyor { 0% { background-position: 0 0; } 100% { background-position: 100px 0; } } .box { position: absolute; bottom: 100px; left: 0; width: 100px; height: 100px; background-color: #f00; animation: move 2s linear infinite; } @keyframes move { 0% { transform: translateX(-100px); } 100% { transform: translateX(800px); } } </style> </head> <body> <div class="container"> <div class="chimney"></div> <div class="conveyor-belt"></div> <div class="box"></div> </div> </body> </html> ``` 这段代码实现了一个工厂流水线动画,包括烟囱冒烟、传送带运动和货物移动等效果。你可以将代码复制到一个HTML文件中并在浏览器中打开,就可以看到动画效果了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值