画像処理用に高度に最適化されたページと、非常にグラフィック効果のあるページがあります。
しばらくやりたいことがあるのですが、明確な答えが見つかりません。
内部アニメーションと同じ速度で jQuery 経由で css の背景プロパティをアニメーション化したい (500)
私の他のアニメーションは、私が実装しているものに正当な理由があるため、画像ベースです。
500 のアニメーション レートで、(ライブ サイトで見られるように) div 全体の背景プロパティを編集できますか?
http://www.sinsysonline.com/design/index.html
jQuery
<script type='text/javascript'>
$(document).ready(function(){
$(".feat3col").hover(
function() {
$(this).find('img.a').stop().animate({"opacity": "0"}, "fast");
$(this).css('background', '#000');
},
function() {
$(this).find('img.a').stop().animate({"opacity": "1"}, "slow");
$(this).css('background', '#FFF');
});
});
</script>
http://www.sinsysonline.com/design/index.html
マークアップ:
<div class="featured">
<div class="feat3col">
<h2>Packages</h2>
<div class="imgGlow">
<img class="a" width:"200px" height:"300px" src="images/filler_200x300.jpg" alt="test" />
<img class="b" width:"200px" height:"300px" src="images/filler_200x3002.jpg" alt="test" />
</div>
<p>This should extend roughly 5-7 lines. It is simply filler for development purposes. Ignore this statement, and the link below.</p>
<a href="#" class="botCap">Link Link</a>
</div>
<div class="feat3col">
<h2>Reviews</h2>
<div class="imgGlow">
<img class="a" width:"200px" height:"300px" src="images/filler_200x300.jpg" alt="test" />
<img class="b" width:"200px" height:"300px" src="images/filler_200x3002.jpg" alt="test" />
</div>
<p>This should extend roughly 5-7 lines. It is simply filler for development purposes. Ignore this statement, and the link below. Make more content!</p>
<a href="#" class="botCap">Link Link</a>
</div>
<div class="feat3col">
<h2>About</h2>
<div class="imgGlow">
<img class="a" width:"200px" height:"300px" src="images/filler_200x300.jpg" alt="test" />
<img class="b" width:"200px" height:"300px" src="images/filler_200x3002.jpg" alt="test" />
</div>
<p>This should extend roughly 5-7 lines. It is simply filler for development purposes. Ignore this statement, and the link below. Yet again, these are simply use case scenarios to display different heights and how it still works.</p>
<a href="#" class="botCap">Link Link</a>
</div>
</div>
http://www.sinsysonline.com/design/index.html
これが初心者の質問である場合、私はいくつかの病気のサイトを作成しましたが、プラグインを使用する必要がありました. このセクションは、私自身の開発で 100% ソロで行っています。画像とペアでこれを達成する必要がある理由は、画像の透明度を有効にすると、最適化とフェードを使用して 50kb 程度 (vs 2-7kb) になるためです。この画像を利用して、フェードを使用した実際のグラフィック デザインを作成し、div 全体を背景に合わせてフェードさせたいと考えています。