gpt4 book ai didi

jquery - 使用 jquery 更改 rgba alpha 透明度

转载 作者:行者123 更新时间:2023-11-28 08:58:55 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
jQuery + RGBA color animations

嘿,

我想在悬停时更改 rgba 值的不透明度,但不透明度保持在 .07.. 也许你能帮我找出错误。

CSS(IE hacks 在单独的文件中 - 无需在这里提及)

.boxcaption{
float: left;
position: absolute;
height: 100px;
width: 100%;
background: rgb(255, 144, 11);
background: rgba(255, 144, 11, 0.7);
}

JS

var thumbslide = $('.boxgrid.captionfull').click(function() {
$('.boxgrid.captionfull.clicked').removeClass('clicked').children('.cover').stop().animate({top: 230, background: 'rgba(255, 144, 11, 0.7)'}, 350);
$(this).toggleClass('clicked').children('.cover').stop().animate({top: 0, height:"230px", background: 'rgba(255, 144, 11, 1)'}, 350);
});

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com