marcelamagana004 Posted May 6, 2022 Share Posted May 6, 2022 Hi, Im trying to create a shrink nav bar so it starts with a big logo and when the users scrolls it becomes smaller (example https://proto-objects.com/) I try using this code: #header .header-title-logo img { transition: max-height 140ms ease-in-out } #header.shrink { .header-announcement-bar-wrapper{ padding-top: 20px!important; padding-bottom: 20px!important; } .header-title-logo img { max-height: 40px; } } Also i tried this one: .header.shrink img { max-width: 120px; transition: all 0.2s ease-in-out } .header img { transition: all 0.2s ease-in-out } Does anyone knows how i can adjust this? Thank you!! Link to comment
tuanphan Posted May 8, 2022 Share Posted May 8, 2022 Try this code. If it doesn't work, please share link to your site, we can check easier header#header img { transition: all 0.3s; } header#header.shrink img { max-height: 30px; transition: all 0.3s; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment