MCPcopy
hub / github.com/iamhosseindhv/notistack / setTranslateValue

Function setTranslateValue

src/transitions/Slide/Slide.tsx:84–91  ·  view source on GitHub ↗
(direction: SlideTransitionDirection, node: HTMLElement | null)

Source from the content-addressed store, hash-verified

82}
83
84function setTranslateValue(direction: SlideTransitionDirection, node: HTMLElement | null): void {
85 if (!node) return;
86 const transform = getTranslateValue(direction, node);
87 if (transform) {
88 node.style.webkitTransform = transform;
89 node.style.transform = transform;
90 }
91}
92
93const Slide = React.forwardRef<unknown, TransitionProps>((props, ref) => {
94 const {

Callers 3

handleEnterFunction · 0.85
handleExitFunction · 0.85
Slide.tsxFile · 0.85

Calls 1

getTranslateValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…