js实现雷阵雨效果
代码语言:html
所属分类:动画
代码描述:js实现雷阵雨效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Contrail+One'> <style> * { margin: 0; padding: 0; } html,body { overflow: hidden; } canvas { background-color: #1f1f33; -webkit-animation: thunder-bg 8s infinite; } h1 { position: fixed; font-size: 3em; text-align: center; top: 50%; left: 50%; color: #565656; transform: translate(-50%, -50%); text-shadow: 5px 5px 0px rgba(0,0,0,0); font-family:'Contrail one', serif; -webkit-animation: thunder-h1 8s infinite; } @-webkit-keyframes thunder-bg { 0% { background-color: #1f1f33; } 9% { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0