摘要:最近在開發我的YZMPHP框架,在繁忙中也做了一些css3的小效果,在這里展示一下。源碼...
最近在開發我的YZMPHP框架,在繁忙中也做了一些css3的小效果,在這里展示一下。
文字效果:
源碼:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>YZMPHP - 輕量級PHP框架</title> <style type="text/css"> *{ margin: 0;padding: 0; } body{ background: #333;font-family: "Helvetica Neue",Helvetica,"microsoft yahei",STHeiTi,sans-serif; } h1{ width: 100%;height: 80px;line-height: 80px;text-align: center;color: green;margin: 50px auto;font-size: 5em;font-weight: normal; background-image: -webkit-linear-gradient(left, #147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96); background-size: 200% 100%; -webkit-text-fill-color: transparent; -webkit-background-clip: text; -webkit-animation: mask 4s infinite linear; } /******不太想做IE等瀏覽器的兼容的分割線******/ @-webkit-keyframes mask { 0% { background-position: 0 0;} 100% { background-position: -100% 0;} } p{ width: 100%;height: 80px;line-height: 80px;text-align: center;color: #999;margin: 50px auto;font-size: 2em; background-image: -webkit-linear-gradient(left, #999, #999 5%,#fff 10%, #999 15%, #999); background-size: 200%; -webkit-text-fill-color: transparent; -webkit-background-clip: text; -webkit-animation: anim 3s infinite; } @-webkit-keyframes anim{ 0%{ background-position: 0 0; } 100%{ background-position: -100% 0; } } </style> </head> <body> <h1>YZMPHP 輕量級PHP框架</h1> <p>YZMPHP 念念不忘,必有回響,有一口氣,點一盞燈</p> </body> </html>
網友評論:
546
2017-02-22 18:16:59 回復
網友評論:
2017-01-15 16:24:11 回復
網友評論:
dsdd
2017-01-15 16:23:52 回復