меня при наведении на определенную картинку товара сменялась картинку на другую картинку ?
Типа такого надо <figure class="tohover"> <?php echo get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = '' );?> <img src="<?php the_field('hover_image');?>" alt="" class="on_hover"> </figure> <style> .tohover{ position: relative; } .tohover>img{ transition: all .25s ease; width: 100%; } .tohover>img+img{ position: absolute; left:0; top: 0; opacity: 0; } .tohover:hover>img{opacity: 0;} .tohover:hover>img+img{opacity: 1;} </style>
Обсуждают сегодня