div+css实现工业缺陷检测动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现工业缺陷检测动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>缺陷检测动画特效</title> <style> /* 基础样式 */ body { background: #1a1a1a; display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; } .defect-box { width: 200px; height: 200px; background: #2a2a2a; border-radius: 8px; position: relative; margin: 10px; display: flex; align-items: center; justify-content: center; } /* 1. 脉冲警示动画 */ .pulse-alert { animation: pulse 1.5s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } } /* 2. 边框扫描动画 */ .border-scan { position: relative; ove.........完整代码请登录后点击上方下载按钮下载查看
网友评论0