纯css实现文字三维立体抖动效果
代码语言:html
所属分类:动画
代码描述:纯css实现文字三维立体抖动效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { display: grid; place-content: center; height: 100vh; font: 30vh 'Arial', cursive; overflow: hidden; } a { color: hsl(0, 50%, 20%); -webkit-transform: rotate(35deg) skewx(-5deg) translatex(-10px); transform: rotate(35deg) skewx(-5deg) translatex(-10px); -webkit-filter: drop-shadow(5px 5px 0 hsl(0, 50%, 50%)) drop-shadow(4.8px 4.8px 0 hsl(0.288, 50%, 50%)) drop-shadow(4.6px 4.6px 0 hsl(1.152, 50%, 50%)) drop-shadow(4.4px 4.4px 0 hsl(2.592, 50%, 50%)) drop-shadow(4.2px 4.2px 0 hsl(4.608, 50%, 50%)) drop-shadow(4px 4px 0 hsl(7.2, 50%, 50%)) drop-shadow(3.8px 3.8px 0 hsl(10.368, 50%, 50%)) drop-shadow(3.6px 3.6px 0 hsl(14.112, 50%, 50%)) drop-shadow(3.4px 3.4px 0 hsl(18.432, 50%, 50%)) drop-shadow(3.2px 3.2px 0 hsl(23.328, 50%, 50%)) drop-shadow(3px 3px 0 hsl(28.8, 50%, 50%)) drop-shadow(2.8px 2.8px 0 hsl(34.848, 50%, 50%)) drop-shadow(2.6px 2.6px 0 hsl(41.472, 50%, 50%)) drop-shadow(2.4px 2.4px 0 hsl(48.672, 50%, 50%)) drop-shadow(2.2px 2.2px 0 hsl(56.448, 50%, 50%)) drop-shadow(2px 2px 0 hsl(64.8, 50%, 50%)) drop-shadow(1.8px 1.8px 0 hsl(73.728, 50%, 50%)) drop-shadow(1.6px 1.6px 0 hsl(83.232, 50%, 50%)) drop-shadow(1.4px 1.4px 0 hsl(93.312, 50%, 50%)) drop-shadow(1.2px 1.2px 0 hsl(103.968, 50%, 50%)) drop-shadow(1px 1px 0 hsl(115.2, 50%, 50%)) drop-shadow(0.8px 0.8px 0 hsl(127.008, 50%, 50%)) drop-shadow(0.6px 0.6px 0 hsl(139.392, 50%, 50%)) drop-shadow(0.4px 0.4px 0 hsl(152.352, 50%, 50%)) drop-shadow(0.2px 0.2px 0 hsl(165.888, 50%, 50%)); filter: drop-shadow(5px 5px 0 hsl(0, 50%, 50%)) drop-shadow(4.8px 4.8px 0 hsl(0.288, 50%, 50%)) drop-shadow(4.6px 4.6p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0