MCPcopy Create free account
hub / github.com/Lobos/react-ui / withoutTransition

Function withoutTransition

src/utils/dom.js:41–52  ·  view source on GitHub ↗
(el, callback)

Source from the content-addressed store, hash-verified

39}
40
41export function withoutTransition (el, callback) {
42 //turn off transition
43 el.style.transition = 'none';
44
45 callback();
46
47 //force a redraw
48 forceRedraw(el);
49
50 //put the transition back
51 el.style.transition = '';
52}
53
54export function getOuterHeight (el) {
55 let height = el.clientHeight

Callers 1

showOptionsFunction · 0.90

Calls 1

forceRedrawFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…