jquery+css实现文字冒泡冒烟粒子动画代码
代码语言:html
所属分类:粒子
代码描述:jquery+css实现文字冒泡冒烟粒子动画代码
代码标签: jquery css 文字 冒泡 冒烟 粒子 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @font-face { font-family: 'bebas'; src: url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.eot'); src: url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.eot?#iefix') format('embedded-opentype'), url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.woff2') format('woff2'), url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.woff') format('woff'), url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.ttf') format('truetype'), url('//repo.bfw.wiki/bfwrepo/fonts/bebas/bebas-webfont.svg#bebasregular') format('svg'); font-weight: normal; font-style: normal; } body { padding: 40px 0; font-family: "bebas", sans-serif; background-color: #fff; } body .textcontainer { padding: 40px 0; text-align: center; } body .particletext { text-align: center; font-size: 48px; position: relative; } body .particletext.bubbles > .particle { opacity: 0; position: absolute; background-color: rgba(33, 150, 243, 0.5); -webkit-animation: bubbles 3s ease-in infinite; animation: bubbles 3s ease-in infinite; border-radius: 100%; } body .particletext.hearts > .particle { opacity: 0; position: absolute; background-color: #cc2a5d; -webkit-animation: hearts 3s ease-in infinite; animation: hearts 3s ease-in infinite; } body .particletext.hearts > .particle:before, body .particletext.hearts > .particle:after { position: absolute; content: ""; border-radius: 100px; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #cc2a5d; } body ..........完整代码请登录后点击上方下载按钮下载查看
网友评论0