css实现霓虹灯按钮边框动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现霓虹灯按钮边框动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&display=swap'); *, *::before, *::after { padding: 0; margin: 0 auto; box-sizing: border-box; } body { position:relative; background-color: #000000; } .box { margin: 20% auto; display: block; width: 180px; height: 100px; background-color: transparent; background-image: repeating-linear-gradient(240deg, #a58455, #a58455 0px, transparent 15px, transparent 15px, #a58455 45px), repeating-linear-gradient(330deg, #a58455, #a58455 0px, transparent 15px, transparent 15px, #a58455 45px), repeating-linear-gradient(60deg, #a58455, #a58455 0px, transparent 15px, transparent 15px.........完整代码请登录后点击上方下载按钮下载查看
网友评论0