日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

html文字简单动画效果,CSS3一个简单的按钮悬停波浪文本动画效果

發布時間:2023/12/15 CSS 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html文字简单动画效果,CSS3一个简单的按钮悬停波浪文本动画效果 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

CSS

語言:

CSSSCSS

確定

@import url("https://fonts.googleapis.com/css?family=Roboto:900");

body {

background: #111;

}

a {

font-family: "Roboto", sans-serif;

font-weight: 900;

color: black;

text-decoration: none;

}

.centered {

position: absolute;

left: 50%;

top: 50%;

transform: translate(-50%, -50%);

}

.h-button {

background: white;

padding: 20px;

width: 250px;

text-align: center;

}

.h-button span {

display: inline-block;

min-width: 0.3em;

text-transform: uppercase;

transition: 0.25s cubic-bezier(0.5, -1, 0.5, 2);

opacity: 0;

transform: translate(0, -20px);

}

.h-button:before {

content: attr(data-text);

position: absolute;

width: 100%;

left: 0;

transition: 0.25s cubic-bezier(0.5, -1, 0.5, 2);

text-transform: uppercase;

letter-spacing: 3.5px;

opacity: 1;

transform: translate(0, 0px);

}

.h-button:hover:before,

.h-button:focus:before {

opacity: 0;

transform: translate(0, 20px);

}

.h-button:hover span,

.h-button:focus span {

opacity: 1;

transform: translate(0, 0);

}

.h-button:hover span:nth-child(1),

.h-button:focus span:nth-child(1) {

transition-delay: 0.025s;

}

.h-button:hover span:nth-child(2),

.h-button:focus span:nth-child(2) {

transition-delay: 0.05s;

}

.h-button:hover span:nth-child(3),

.h-button:focus span:nth-child(3) {

transition-delay: 0.075s;

}

.h-button:hover span:nth-child(4),

.h-button:focus span:nth-child(4) {

transition-delay: 0.1s;

}

.h-button:hover span:nth-child(5),

.h-button:focus span:nth-child(5) {

transition-delay: 0.125s;

}

.h-button:hover span:nth-child(6),

.h-button:focus span:nth-child(6) {

transition-delay: 0.15s;

}

總結

以上是生活随笔為你收集整理的html文字简单动画效果,CSS3一个简单的按钮悬停波浪文本动画效果的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。