100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > html设置gif为透明 使用GIF动图和CSS3背景裁剪(background-clip)特性实现的透明文本烟雾特效...

html设置gif为透明 使用GIF动图和CSS3背景裁剪(background-clip)特性实现的透明文本烟雾特效...

时间:2019-02-16 06:06:37

相关推荐

html设置gif为透明 使用GIF动图和CSS3背景裁剪(background-clip)特性实现的透明文本烟雾特效...

CSS

语言:

CSSSCSS

确定

@import url('/css?family=Montserrat');

body {

background-color: #111;

}

.title {

font-family: "Montserrat";

text-align: center;

color: #FFF;

display: -webkit-box;

display: -ms-flexbox;

display: flex;

-webkit-box-orient: vertical;

-webkit-box-direction: normal;

-ms-flex-direction: column;

flex-direction: column;

-webkit-box-align: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-ms-flex-pack: center;

justify-content: center;

height: 100vh;

letter-spacing: 1px;

}

h1 {

background-image: url(/media/26BROrSHlmyzzHf3i/giphy.gif);

background-size: cover;

color: transparent;

-moz-background-clip: text;

-webkit-background-clip: text;

text-transform: uppercase;

font-size: 120px;

line-height: .75;

margin: 10px 0;

}

/* styling my button */

.white-mode {

text-decoration: none;

padding: 7px 10px;

background-color: #122;

border-radius: 3px;

color: #FFF;

-webkit-transition: .35s ease-in-out;

transition: .35s ease-in-out;

position: absolute;

left: 15px;

bottom: 15px;

font-family: "Montserrat";

}

.white-mode:hover {

background-color: #FFF;

color: #122;

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。