100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 微信小程序渐变色按钮 好看的小程序按钮样式

微信小程序渐变色按钮 好看的小程序按钮样式

时间:2018-07-20 16:06:23

相关推荐

微信小程序渐变色按钮 好看的小程序按钮样式

效果图

<button class="btn btn-grad1" >按钮1</button>

<button class="btn btn-grad2" >按钮2</button>

<button class="btn btn-grad3" >按钮3</button>

<button class="btn btn-grad4" >按钮4</button>

<button class="btn btn-grad5" >按钮5”</button>

.btn-grad1 {

background-image: linear-gradient(to right, #314755, #26a0da, #314755);

margin: 10px;

width: 70%;

padding: 15px 45px;

text-align: center;

text-transform: uppercase;

transition: 0.5s;

background-size: 200% auto;

color: white;

box-shadow: 0 0 20px #eee;

border-radius: 10px;

display: block;

}

.btn-grad1:hover {

background-position: right center; /* change the direction of the change here */

color: #fff;

text-decoration: none;

}

.btn-grad2 {

background-image: linear-gradient(to right, #ff6e7f 0%, #bfe9ff 51%, #ff6e7f 100%);

margin: 10px;

width: 70%;

padding: 15px 45px;

text-align: center;

text-transform: uppercase;

transition: 0.5s;

background-size: 200% auto;

color: white;

box-shadow: 0 0 20px #eee;

border-radius: 10px;

display: block;

}

.btn-grad2:hover {

background-position: right center; /* change the direction of the change here */

color: #fff;

text-decoration: none;

}

.btn-grad3 {

background-image: linear-gradient(to right, #003973 0%, #E5E5BE 51%, #003973 100%);

margin: 10px;

width: 70%;

padding: 15px 45px;

text-align: center;

text-transform: uppercase;

transition: 0.5s;

background-size: 200% auto;

color: white;

box-shadow: 0 0 20px #eee;

border-radius: 10px;

display: block;

}

.btn-grad3:hover {

background-position: right center; /* change the direction of the change here */

color: #fff;

text-decoration: none;

}

.btn-grad4 {

background-image: linear-gradient(to right, #603813 0%, #b29f94 51%, #603813 100%);

margin: 10px;

width: 70%;

padding: 15px 45px;

text-align: center;

text-transform: uppercase;

transition: 0.5s;

background-size: 200% auto;

color: white;

box-shadow: 0 0 20px #eee;

border-radius: 10px;

display: block;

}

.btn-grad4:hover {

background-position: right center; /* change the direction of the change here */

color: #fff;

text-decoration: none;

}

.btn-grad5 {

background-image: linear-gradient(to right, #77A1D3 0%, #79CBCA 51%, #77A1D3 100%);

margin: 10px;

width: 70%;

padding: 15px 45px;

text-align: center;

text-transform: uppercase;

transition: 0.5s;

background-size: 200% auto;

color: white;

box-shadow: 0 0 20px #eee;

border-radius: 10px;

display: block;

}

.btn-grad5:hover {

background-position: right center; /* change the direction of the change here */

color: #fff;

text-decoration: none;

}

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