How to use the @inkline/inkline/helpers.getStyleProperty function in @inkline/inkline

To help you get started, we’ve selected a few @inkline/inkline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github inkline / inkline / src / transitions / TransitionExpand / script.js View on Github external
enter(element) {
                    const width = getStyleProperty(element, 'width');

                    element.style.width = width;
                    element.style.position = 'absolute';
                    element.style.visibility = 'hidden';
                    element.style.height = 'auto';

                    const height = getStyleProperty(element, 'height');

                    element.style.width = null;
                    element.style.position = null;
                    element.style.visibility = null;
                    element.style.height = 0;

                    getStyleProperty(element, 'height'); // Force rerender element to set correct height
                    setTimeout(() => {
                        element.style.height = height;
                    });
                },
                afterEnter(element) {
github inkline / inkline / src / transitions / TransitionExpand / script.js View on Github external
enter(element) {
                    const width = getStyleProperty(element, 'width');

                    element.style.width = width;
                    element.style.position = 'absolute';
                    element.style.visibility = 'hidden';
                    element.style.height = 'auto';

                    const height = getStyleProperty(element, 'height');

                    element.style.width = null;
                    element.style.position = null;
                    element.style.visibility = null;
                    element.style.height = 0;

                    getStyleProperty(element, 'height'); // Force rerender element to set correct height
                    setTimeout(() => {
                        element.style.height = height;
github inkline / inkline / src / transitions / TransitionExpand / script.js View on Github external
leave(element) {
                    element.style.height = getStyleProperty(element, 'height');

                    getStyleProperty(element, 'height'); // Force rerender element to set correct height
                    setTimeout(() => {
                        element.style.height = 0;
                    });
                }
            }
github inkline / inkline / src / transitions / TransitionExpand / script.js View on Github external
enter(element) {
                    const width = getStyleProperty(element, 'width');

                    element.style.width = width;
                    element.style.position = 'absolute';
                    element.style.visibility = 'hidden';
                    element.style.height = 'auto';

                    const height = getStyleProperty(element, 'height');

                    element.style.width = null;
                    element.style.position = null;
                    element.style.visibility = null;
                    element.style.height = 0;

                    getStyleProperty(element, 'height'); // Force rerender element to set correct height
                    setTimeout(() => {
                        element.style.height = height;
                    });
                },
                afterEnter(element) {