-
-
Save Spellhammer/24a633a1d0eb639d293dc1e26c4d8406 to your computer and use it in GitHub Desktop.
Dynamic Image Accordion CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.image-accordion__item { | |
flex-grow: 1; | |
} | |
.image-accordion__item--active { | |
flex-grow: 10; | |
} | |
.image-accordion__link { | |
opacity: 1; | |
transition: 0.3s opacity ease-in-out; | |
} | |
.image-accordion__item:not(.image-accordion__item--active) .image-accordion__link { | |
opacity: 0; | |
} | |
body:not(.ng-scope) .image-accordion__item:not(.image-accordion__item--active) .image-accordion__details { | |
pointer-events: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment