Aihaam
August 23, 2024, 12:16am
1
Hi guys,
I’ve added an animation to my menu and cart drawer and when I interact with both, a transparent black background appears. I want to animate the background and I don’t want it to just pop up, I want it to appear slowly (at the same speed as the drawer).
Does anyone know how I can do that?
Im using the Refresh Theme
URL: pacefultakeover.com
Password: paceclo
Hey @Aihaam
Please follow these steps:
Go to Online Store
Click edit code
Find your theme.liquid file
Add the following code in the bottom of the file above tag
This adds a fade in animation to both the menu’s background and the drawer’s background.
You can adjust the speed of the animation by changing the .6s
Hope this helps
Thanks,
Futuremerce
Aihaam
August 23, 2024, 1:37pm
3
Hi, first of all, thank you very much for the answer. It actually worked but now the closing animation for the cart drawer is gone. Can you help me?
Hi again,
Please update this part:
.drawer {
background: transparent;
transition: background .6s ease-in-out;
}
To this:
.drawer {
background: transparent;
transition: .6s ease-in-out;
}
That should resolve that issue.
Thanks,
Futuremerce
Aihaam
August 23, 2024, 2:00pm
5
Now the fade out animation for the menu drawer background when closing is gone