Add zoom out effect on image banner

Solved
Dieseins22
Tourist
9 0 1

Can someone explain me how to add a zoom out effect of the image banner when entering my site like in this example : https://badeyez.de/

 

my URL : https://dieseins.de/

Accepted Solution (1)
LitCommerce
Astronaut
2860 684 718

This is an accepted solution.

Hi @Dieseins22,

Please follow the steps below:

- Step 1: Go to Assets > base.css and paste this at the bottom of the file:

.banner__media.media img {
  transform: scale(1.1);
  transition: transform .8s cubic-bezier(.215,.61,.355,1),opacity .8s cubic-bezier(.215,.61,.355,1);
  }

- Step 2: image-banner.liquid file and add code here:

Screenshot.png

Code:

<script>
  setTimeout(() => {
    document.getElementById('Banner-template--15550583406778__1655550052e8c75092').querySelector('img').style.transform = 'none';
  }, 100);
</script>

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 4 (4)
oscprofessional
Shopify Partner
15736 2353 3050

@Dieseins22 

Hii,

 

.banner__media.media img {
	transition: transform .8s cubic-bezier(.215,.61,.355,1),opacity .8s cubic-bezier(.215,.61,.355,1);
}

 

Add this css at the bottom of Online Store->Theme->Edit code->Assets->base.scss.liquid

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
LitCommerce
Astronaut
2860 684 718

This is an accepted solution.

Hi @Dieseins22,

Please follow the steps below:

- Step 1: Go to Assets > base.css and paste this at the bottom of the file:

.banner__media.media img {
  transform: scale(1.1);
  transition: transform .8s cubic-bezier(.215,.61,.355,1),opacity .8s cubic-bezier(.215,.61,.355,1);
  }

- Step 2: image-banner.liquid file and add code here:

Screenshot.png

Code:

<script>
  setTimeout(() => {
    document.getElementById('Banner-template--15550583406778__1655550052e8c75092').querySelector('img').style.transform = 'none';
  }, 100);
</script>

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Dieseins22
Tourist
9 0 1

Thank, you that worked !

EdsonAdriano
New Member
6 0 0

Hi, I tried this and followed your steps but it didn't do anything for me. Banner image didn't zoom in or anything. I use Dawn 11.0. Could you please help me?