Animate hover effect for products
How do I make an animate hover effect for products?
What is a animate hover effect for products? How do you make a animate hover effect for products? This script and codes were developed by Mori on 26 October 2022, Wednesday.
Animate hover effect for products - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>animate hover effect for products </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!--product--> <table class="table-product" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="25%"> <div class="item"> <img src="https://source.unsplash.com/random/400x300"/> <div class="text"> <h3>AAA <p>apple</p> </h3> <div class="b-text">a</div> <section>aaaaa aaaa aaa</section> </div> </div> </td> <td width="25%"> <div class="item"> <img src="https://source.unsplash.com/random/400x300"/> <div class="text"> <h3>BBB <p>ball</p> </h3> <div class="b-text">i am hide words</div> <section>ball ball ball ballball ball</section> </div> </div> </td> <td width="25%"> <div class="item"> <img src="https://source.unsplash.com/random/400x300"/> <div class="text"> <h3>CCC <p>cccc</p> </h3> <div class="b-text"> CC<br> Cat<br><br> caaa<br> tttt<br> </div> <section>Cat Cat Cat Cat </section> </div> </div> </td> <td width="25%"> <div class="item"> <img src="https://source.unsplash.com/random/400x300"/> <div class="text"> <h3>DDD <p>dog</p> </h3> <div class="b-text">dog</div> <section>dog dog dog dog dogdog dog dog</section> </div> </div> </td> </tr> </table> <!--end: product--> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animate hover effect for products - Script Codes CSS Codes
.table-product img, .table-product a:hover, .table-product .text { -webkit-transition: all 0.5s ease 0s; -moz-transition: all 0.5s ease 0s; -o-transition: all 0.5s ease 0s; -ms-transition: all 0.5s ease 0s; transition: all 0.5s ease 0s;
}
/*table product*/
.table-product { width: 100%; margin-bottom: 20px; text-align: center;
}
.table-product td { margin: 0; padding: 10px 50px; vertical-align: top; border: 0;
}
.table-product img { opacity: 1; width: 170px; height: 210px; background: #ccc;
}
.table-product a:hover { opacity: 0.8;
}
.table-product h3 { margin: 0; /*to 0*/ line-height: 130%; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #999;
}
.table-product h3 p { font-size: 12px; margin: 0; line-height: 120%;
}
.table-product .pdf { margin-top: 10px;
}
.table-product .item { display: block; height: 530px; /**/ overflow: hidden; font-size: 13px; letter-spacing: 1px;
}
.table-product .text { position: relative; top: 0; height: 350px; /**/ overflow: hidden;
}
Animate hover effect for products - Script Codes JS Codes
//----------pruduct img hover effect //(product-product) //fade effect func function changeBoxEffect(obj, opacity, top) { $(obj).children('img').css('opacity', opacity); $(obj).children('.text').css({"prosition":"relative","top": top}); }; $(function() { //----------pruduct img hover effect $(this).find('.b-text').hide(); $('.table-product .item').mouseenter(function(e) { changeBoxEffect(this, 0.1, "-120px"); /* $(this).children('img').css('opacity', 0.1); $(this).children('.text').css({"prosition":"relative","top":"-100px"});*/ $(this).find('section').fadeOut(0); $(this).find('.b-text').fadeIn(0); }); //img leave effect $('.table-product .item').mouseleave(function(e) { changeBoxEffect(this, 1, "0"); // $(this).children('img').css('opacity', 1); // $(this).children('.text').css({"prosition":"relative","top":"0"}); $(this).find('section').fadeIn(0); $(this).find('.b-text').fadeOut(0); }); }); /*pruduct img hover effect*/
Developer | Mori |
Username | moriko232 |
Uploaded | October 26, 2022 |
Rating | 3 |
Size | 3,137 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
FadeToggle | 1,467 Kb |
Menu item hover line effect | 2,998 Kb |
Scroll and change numbers | 2,249 Kb |
PACE loadding effect | 2,164 Kb |
Auto zoom in background | 1,994 Kb |
Tab menu style | 3,615 Kb |
Hover menu | 3,040 Kb |
Sticky menu | 3,297 Kb |
Hover line effect | 2,439 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Foundation 5 Menu - Accessibility | Xporter | 1,999 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Experiment | Toddmoy | 2,849 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!