Support » Plugin: BJ Lazy Load » Placeholder image dimensions

  • Hi,

    excellent plugin! I do however have 1 question. Is there a way to specify the preloader image dimensions? I want to loader a 32×32 preloader image (tiny overhead), however it gets totally stretched…

    Is the solution adjusting the plugin or creating a gif, which has exactly the standard image size and maintaining the 32×32 image in the center of a white background? I’d pefer to adjust the code if you can tell me where
    thanks and have a great week.

    Cheers,

Viewing 1 replies (of 1 total)
  • I was trying to achive the same so I styled these classes:

    
    //while loading reduce size and center position 
    .lazy:not(.lazy-loaded){
      position: absolute;
      top: 50%;
      left: 50%;
      max-height: 50px !important;
      max-width: 50px !important;
      margin-top: -25px;
      margin-left: -25px;
    
      //placeholder for woocommerce single product image
      &.attachment-shop_single {
        margin: calc(50% - 25px) !important;
        position: static;
    
      }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Placeholder image dimensions’ is closed to new replies.