css特效文字
使用css样式属性
文字肖像特效
-webkit-background-clip: text;
DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Documenttitle><style>* {margin: 0;padding: 0;}body {background: #000;}.desc {height: 100vh;overflow: hidden;color: transparent;line-height: 14px;letter-spacing: -.05em;font-size: 16px;background-image: url('./dist/assets/nx.png'), url('./dist/assets/nx.png');background-blend-mode: soft-light;background-position: bottom;background-repeat: no-repeat;background-size: contain;background-clip: text;-webkit-background-clip: text;}style>
head><body><div class="desc">For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.child element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.child element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.child element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.child element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLchild element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.child element. The used values of that element's background properties are their initial values, and thepropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLpropagated values are treated asif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootelement is none and its background-color is transparent, user agents must instead propagate the computed valuesof the background properties from that element's first HTMLif they were specified on the root element. It is recommended that authors of HTML documents specifythe canvas background for theelement rather than the HTML element.For documents whose root element is an HTML element: if the computed value of background-image on the rootdiv>body>html>
文字蒙版视频
文字背后播放视频 mix-blend-mode
DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Documenttitle>
head>
<style>video {height: 100vh;width: 100vw;}.container {position: absolute;height: 100vh;width: 100vw;top: 0;left: 0;display: flex;justify-content: center;align-items: center;background-color: #fff;mix-blend-mode: screen;}.container h1 {}
style><body><video preload="auto" src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" class="no-cursor" autoplay loop muted>video><div class="container"><h1>hello worldh1>div>
body>
<script>script>html>
使用svg特性
svg css路径动画
https://pixso.cn/ 新建文件导出svg
DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Documenttitle>
head>
<style>svg {width: 80vw;overflow: hidden;height: 80vh;}
style><body><svg width="783.289673" height="290.340057" viewBox="0 0 783.29 290.34" fill="none"xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><desc>Created with Pixso.desc><path id="wavpath"d="M0.394897 250.441C146.395 62.4414 131.395 -116.559 331.395 98.4414C531.395 313.441 623.395 294.441 640.395 284.441C657.395 274.441 813.395 119.441 777.395 31.4414" /><text fill="#000"><textPath href="#wavpath"><animate attributeName="startOffset" from="-50%" to="110%" dur="10s" repeatCount="indefinite">animate>自定义文字动画textPath>text>svg>body>
<script>script>html>
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
