435pxよりも広いcd-words-wrapperクラスでJavascriptを作成しようとしていました。理想的に535px?どんな助けでも大歓迎です!以下は私の後半の応答のため申し訳ありませんイベントJavascriptで435pxの代わりにcd-words-wrapperクラス535pxを作成する方法
function showWord($word, $duration) {
if($word.parents('.cd-headline').hasClass('type')) {
showLetter($word.find('i').eq(0), $word, false, $duration);
$word.addClass('is-visible').removeClass('is-hidden');
} else if($word.parents('.cd-headline').hasClass('clip')) {
$word.parents('.cd-words-wrapper').animate({ 'width' : $word.width() + 10 }, revealDuration, function(){
setTimeout(function(){ hideWord($word) }, revealAnimationDelay);
});
}
}
$ word.parents( '。cd-words-wrapper').css({'width': '535px'}) – Franco
ありがとうございます。私は初心者です。 ;/ – user1760396