Rumah > Soal Jawab > teks badan
P粉5886603992023-08-19 09:30:52
Jadi masalahnya ialah kelegapan tidak beralih, ini kerana saya menetapkan imej latar belakang pada tuding, jadi apabila tiada tuding, kelegapan beralih dan kemudian imej hilang serta-merta secara semula jadi:
.elementor-section.elementor-element.product-card > .elementor-container .product-image::before { transition: opacity 0.3s ease-in-out; position: absolute; width: 100%; height: 100%; background-repeat: no-repeat; background-size: cover; top: 0; left: 0; display: block; content: ""; opacity: 0; } .elementor-section.elementor-element.core-range > .elementor-container .product-image::before { background-image: url("./images/core-range-bg.svg"); } .elementor-section.elementor-element.core-range > .elementor-container:hover .product-image::before, .elementor-section.elementor-element.phases-of-the-moon > .elementor-container:hover .product-image::before { opacity: 1; } .elementor-section.elementor-element.phases-of-the-moon > .elementor-container .product-image::before { background-image: url("./images/phases-of-the-moon-bg.svg"); }