MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setStyleProperty

Function setStyleProperty

core/src/utils/animation/animation-utils.ts:12–15  ·  view source on GitHub ↗
(element: HTMLElement, propertyName: string, value: string | null)

Source from the content-addressed store, hash-verified

10};
11
12export const setStyleProperty = (element: HTMLElement, propertyName: string, value: string | null) => {
13 const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : '';
14 element.style.setProperty(prefix + propertyName, value);
15};
16
17export const addClassToArray = (classes: string[] = [], className: string | string[] | undefined): string[] => {
18 if (className !== undefined) {

Callers 3

beforeAnimationFunction · 0.90
afterAnimationFunction · 0.90
pauseAnimationFunction · 0.90

Calls 1

getAnimationPrefixFunction · 0.85

Tested by

no test coverage detected