skip to Main Content

Jquery – Detect and remove prev/next arrows if there's more than one image

This is a slideshow HTML that's generated with 3 images and shown are the Prev << and Next >> buttons. <div class="wp-block-gallery"> <div class="wpcookie-slide"> <img decoding="async" loading="lazy" src="image1.jpg" alt="image"> </div> <div class="wpcookie-slide"> <img decoding="async" loading="lazy" src="image2.jpg" alt="image"> </div> <div class="wpcookie-slide">…

VIEW QUESTION

Set scale jquery

Please tell me why I can’t set the scale for the div? var a = 0.1; var b = 0.1; var scale = a+b; $(".item").css('scale', scale) .item { width: 100px; height: 100px; background: blue; } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="item"></div>

VIEW QUESTION
Back To Top
Search