Created
December 18, 2020 10:03
-
-
Save apphp/68786f4c743f7ee562e5a95072199674 to your computer and use it in GitHub Desktop.
Creating Collapse Sliding Side Panel in 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
<style type="text/css"> | |
// source: https://www.apphp.com/index.php?snippet=css-collapsible-sliding-side-panel | |
// You may define side panel, that will slide whether on button click on on window size changing. | |
#sidepane{ | |
display: block; | |
position: absolute; | |
transform: translateX(-100%); | |
transition: transform ease-out 0.2s; | |
} | |
#sidepane.fadeIn{ | |
transform: translateX(0%); | |
transition: transform ease-out 0.3s; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment