GregLassale Posted April 22, 2021 Share Posted April 22, 2021 Site URL: https://gregorylassale.com I just switched to a new accordion-tabs plugin. The one that I used before that has this animation on hover I really like: CleanShot 2021-04-22 at 18.18.51.mp4 I think the CSS for that animation is .box-sizing (@type: border-box) { -webkit-box-sizing: @type; -moz-box-sizing: @type; box-sizing: @type; } .transition (@transition) { -webkit-transition: @transition; -moz-transition: @transition; -ms-transition: @transition; -o-transition: @transition; transition: @transition; } // Overrides (modify at your own risk) // No support provided past this point // ----------------------------------- .accordion-2 { list-style: none; padding: 0; &__item { margin-bottom: 10px; } &__title { .background-checker(@accordion-2__primary-color); .box-sizing; .transition(all .3s ease); border-left: 3px solid @accordion-2__primary-color; I'd like to apply it to my plugin but would need help with that. The new plugin's customization CSS is /* Plugin Accotabs - Custom Styles */ html .c-tabs__accordion-tab { margin: 0 0 10px; background: #f3f5f7; border: .5px solid #ddd; border-radius: 3px 3px 3px 3px; } html .c-tabs.has-hover .c-tabs__accordion-tab:hover,html .c-tabs__accordion-tab[aria-expanded=true] { background: #e8ecf0; border: .5px solid #ddd; } /* end Plugin Accotabs - Custom Styles */ Thanks in advance. Beyondspace 1 Link to comment
Beyondspace Posted April 23, 2021 Share Posted April 23, 2021 5 hours ago, GregLassale said: Site URL: https://gregorylassale.com I just switched to a new accordion-tabs plugin. The one that I used before that has this animation on hover I really like: CleanShot 2021-04-22 at 18.18.51.mp4 2.6 MB · 1 download I think the CSS for that animation is .box-sizing (@type: border-box) { -webkit-box-sizing: @type; -moz-box-sizing: @type; box-sizing: @type; } .transition (@transition) { -webkit-transition: @transition; -moz-transition: @transition; -ms-transition: @transition; -o-transition: @transition; transition: @transition; } // Overrides (modify at your own risk) // No support provided past this point // ----------------------------------- .accordion-2 { list-style: none; padding: 0; &__item { margin-bottom: 10px; } &__title { .background-checker(@accordion-2__primary-color); .box-sizing; .transition(all .3s ease); border-left: 3px solid @accordion-2__primary-color; I'd like to apply it to my plugin but would need help with that. The new plugin's customization CSS is /* Plugin Accotabs - Custom Styles */ html .c-tabs__accordion-tab { margin: 0 0 10px; background: #f3f5f7; border: .5px solid #ddd; border-radius: 3px 3px 3px 3px; } html .c-tabs.has-hover .c-tabs__accordion-tab:hover,html .c-tabs__accordion-tab[aria-expanded=true] { background: #e8ecf0; border: .5px solid #ddd; } /* end Plugin Accotabs - Custom Styles */ Thanks in advance. try if this helps html .c-tabs__accordion-tab:hover { border-left: 2px solid #000 !important; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
GregLassale Posted April 23, 2021 Author Share Posted April 23, 2021 6 hours ago, bangank36 said: try if this helps html .c-tabs__accordion-tab:hover { border-left: 2px solid #000 !important; } Worked perfect. Thank you @bangank36. CSS is funny. Every time I think something should be easy to do, it's more involved, and every time I think it's gonna be more involved, it's easy. 🙃 Beyondspace 1 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