0
$('.closebtn')
要素を回転させると同時に不透明度を変更する必要があります。 CSS:要素の不透明度を変更し、jqueryアニメーションを介して回転させます。
.closebtn{
position: absolute;
right: 15px;
top: 5px;
font-size: 35px;
text-align: center;
cursor: pointer;
border-spacing: 0px;
opacity: 0;}
私はjqueryのアニメーションを使用しようとしている:私は私のアニメのイベントハンドラ内で不透明度を変更する方法について
$('.closebtn').animate(
{ borderSpacing: 90 }, {
step: function(now,fx) {
$(this).css('-webkit-transform','rotate('+now+'deg)');
$(this).css('-moz-transform','rotate('+now+'deg)');
$(this).css('transform','rotate('+now+'deg)');
},
duration: 200,
});
任意のアイデア?
おかげでボタン2にのみ、ボタン1とjQueryでCSS3を使用しています。 – quas