看久了wordpress白色的背景和静态素材,不如来试试动态素材,让你的网站焕然一新。
1.彩色泡泡
效果图:
PS:可直接将代码添加至主题 → 添加代码 → script部分。
2.彩色几何元素
效果图:
/* 内容区域样式 */
body {
background-image: url(你的素材地址路径);
background-position-x: center;
background-position-y: center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
ps:将上面的代码添加到主题自定义CSS样式输入框内。
素材下载地址 ↓ ↓ ↓
3.底部波浪代码标签rgba颜色部分
效果图:
<div class="wiiuii_layout">
<svg class="editorial"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 24 150 28"
preserveAspectRatio="none">
<defs>
<path id="gentle-wave"
d="M-160 44c30 0
58-18 88-18s
58 18 88 18
58-18 88-18
58 18 88 18
v44h-352z" />
</defs>
<g class="parallax">
<use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(220,220,220,0.7)"></use>
<use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(210,210,210,0.5)"></use>
<use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(200,200,200,0.3)"></use>
<use xlink:href="#gentle-wave" x="48" y="7" fill="rgb(228,230,231)"></use> </g>
</svg>
</div>
<style type='text/css'>
.parallax > use{animation: move-forever 12s linear infinite;}.parallax > use:nth-child(1){animation-delay: -2s;}.parallax > use:nth-child(2){animation-delay: -2s; animation-duration: 5s;}.parallax > use:nth-child(3){animation-delay: -4s; animation-duration: 3s;}@keyframes move-forever{0%{transform: translate(-90px, 0%);} 100%{transform: translate(85px, 0%);}}.wiiuii_layout{width: 100%;height: 40px;position: relative;overflow: hidden;z-index: 1;background: var(--footer-bg);}.editorial{display: block; width: 100%; height: 40px; margin: 0;}
</style>
ps:波浪颜色可以随喜好更换,修改<g class="parallax">
标签rgba颜色部分。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
您必须登录才能参与评论!
立即登录
来看一看是么子东西