Здравейте ! 
Как мога да направя два цвята плавно да се преливат в даден div :roll:
Ето какво съм направил аз, но не работи
[css]
.item-list-addbox {width: 80px; height: 30px; background-color: #353a3e; margin: 5px 0 0 20px; display: inline-block;}
.item-list-addbox p {text-align: center; font-size: 14px; color: #fff; padding-top: 5px; line-height: 2;}
.item-list-addbox:hover {background-color: #05b3f2;}
[/css]
[js] $(document).ready(function(){
$(".item-list-addbox").mouseover(function() {
$(this).animate({ backgroundColor:'#05b3f2'},2000);
}).mouseout(function() {
$(this).animate({ backgroundColor:'#353a3e'},2000);
});
});[/js]
Как мога да направя два цвята плавно да се преливат в даден div :roll:
Ето какво съм направил аз, но не работи
HTML:
<div class="box-cont">
<a href="#"><div class="item-list-addbox">
<p>Add to cart</p>
</div></a>
<a href="#"><div class="item-list-addbox">
<p>View</p>
</div></a>
</div>
[css]
.item-list-addbox {width: 80px; height: 30px; background-color: #353a3e; margin: 5px 0 0 20px; display: inline-block;}
.item-list-addbox p {text-align: center; font-size: 14px; color: #fff; padding-top: 5px; line-height: 2;}
.item-list-addbox:hover {background-color: #05b3f2;}
[/css]
[js] $(document).ready(function(){
$(".item-list-addbox").mouseover(function() {
$(this).animate({ backgroundColor:'#05b3f2'},2000);
}).mouseout(function() {
$(this).animate({ backgroundColor:'#353a3e'},2000);
});
});[/js]