css实现一个文字消失动画效果代码
代码语言:html
所属分类:悬停
代码描述:css实现一个文字消失动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Kanit:wght@900&display=swap" rel="stylesheet"> <style> * { box-sizing: border-box; } body { --light: rgb(29, 29, 89); --dark: rgb(16, 16, 18); font-family: 'Kanit', sans-serif; font-weight: 900; margin: 0; min-height: 100vh; display: grid; place-items: center; background: repeating-radial-gradient( circle at center, transparent, transparent calc(100% - 0.2rem), turquoise 0, turquoise 100% ), linear-gradient( var(--dark), var(--light) ); transform-style: preserve-3d; perspective: 30rem; background-size: 6rem 6rem, 100% 100%; } @property --size { syntax: '<percentage>'; inherits: false; initial-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0