- outer container element
- inner content element
- outer element
position: fixed - inner element
position: absolute
<?php the_permalink( url_to_postid( 'legal-information' ) ); ?>| /** | |
| * Transitions from and to display-none do not work without JS | |
| * helper function to do transitions and hide/show element after or before | |
| * made global, so it can be used in other scripts | |
| * @param {HTMLElement} parentElement parent element which gets toggled class | |
| * @param {HTMLElement} actionElement action element which is hidden and shown and has transition | |
| * @param {callable} callable show element | |
| */ | |
| window.transitionHelper = function (parentElement, actionElement, callable) { | |
| if (! parentElement.classList.contains('toggled')) { |