MCPcopy Create free account
hub / github.com/dailydotdev/apps / applyStyle

Function applyStyle

packages/shared/src/components/shell/ReadingDrawer.tsx:354–361  ·  view source on GitHub ↗
(element: HTMLElement, props: MovingStyle)

Source from the content-addressed store, hash-verified

352 const shown: MovingStyle = {};
353 const echoes: Animation[] = [];
354 const applyStyle = (element: HTMLElement, props: MovingStyle) =>
355 Object.entries(props).forEach(([name, value]) => {
356 if (value === null || value === undefined) {
357 element.style.removeProperty(name);
358 } else {
359 element.style.setProperty(name, value);
360 }
361 });
362 const followHead = (element: HTMLElement) => {
363 const running = headElement
364 .getAnimations?.()

Callers 2

refreshMovingFunction · 0.85
styleMovingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected