烟雾消散特效
代码语言:html
所属分类:三维
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Smoke Effect</title> <style> @import url(https://fonts.googleapis.com/css?family=Finger+Paint); * { margin: 0; padding: 0; outline: 0; } html, body { width: 100%; height: 100%; overflow: hidden; background: black; font-family: "Finger Paint"; } #myCanvas { z-index: -1; } span { font-size: 100px; display: inline-block; text-shadow: 0 0 0 whitesmoke; -webkit-animation: smoky5s 3s both; animation: smoky5s 3s both; } .text { position: absolute; top: 30%; left: 0; right: 0; bottom: 0; margin: auto; text-align: center; color: transparent; -webkit-backface-visibility: hidden; backface-visibility: hidden; } span:nth-child(even) { -webkit-animation-name: smoky-mirror; animation-name: smoky-mirror; } @-webkit-keyframes smoky { 60% { text-shadow: 0 0 40px whitesmoke; } to { -webkit-transform: translate3d(15rem, -8rem, 0) rotate(-40deg) skewX(70deg) scale(1.5); transform: translate3d(15rem, -8rem, 0) rotate(-40deg) skewX(70deg) scale(1.5); text-shadow: 0 0 20px whitesmoke; opacity: 0; } } @keyframes smoky { 60% { text-shadow: 0 0 40px whitesmoke; } to { -webkit-transform: translate3d(15rem, -8rem, 0) rotate(-40deg) skewX(70deg) scale(1.5); transform: translate3d(15rem, -8rem, 0) rotate(-40deg) skewX(70deg) scale(1.5); text-shadow: 0 0 20px whitesmoke; opacity: 0; } } @-webkit-keyframes smoky-mirror { 60% { text-shadow: 0 0 40px whitesmoke; } to { -webkit-transform: translate3d(18rem, -8rem, 0) rotate(-40deg) skewX(-70deg) scale(2); transform: translate3d(18rem, -8rem, 0) rotate(-40deg) skewX(-70deg) scale(2); text-shadow: 0 0 20px whitesmoke; opacity: 0; } } @keyframes smoky-mirror { 60% { text-shadow: 0 0 40px whitesmoke; } to { -webkit-transform: translate3d(18rem, -8rem, 0) rotate(-40deg) skewX(-70deg) scale(2); transform: translate3d(18rem, -8rem, 0) rotate(-40deg) skewX(-70deg) scale(2); text-shadow: 0 0 20px whitesmoke; opacity: 0; } } span:nth-of-type(1) { -webkit-animation-delay: 3.1s; animation-delay: 3.1s; } span:nth-of-type(2) { -webkit-animation-delay: 3.2s; animation-delay: 3.2s; } span:nth-of-type(3) { -webkit-animation-delay: 3.3s; animation-delay: 3.3s; } span:nth-of-type(4) { -webkit-animation-delay: 3.4s; animation-delay: 3.4s; } span:nth-of-type(5) { -webkit-animation-delay: 3.5s; animation-delay: 3.5s; } span:nth-of-type(6) { -webkit-animation-delay: 3.6s; animation-delay: 3.6s; } span:nth-of-type(7) { -webkit-animation-delay: 3.7s; animation-delay: 3.7s; } span:nth-of-type(8) { -webkit-animation-delay: 3.8s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0