~highlight
~highlight: {
defaultConfig: {
cssClasses: {
toAddOnStart: ["webchalk-highlightable"];
};
};
effectCompositionFrequency: "on-every-play";
immutableConfig: {
composite: "replace";
};
composeEffect(color?: string): {
backwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
forwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
};
} = ...
Type declaration
defaultConfig: {
cssClasses: {
toAddOnStart: ["webchalk-highlightable"];
};
}
Readonly
cssClasses: {
toAddOnStart: ["webchalk-highlightable"];
}
Readonly
toAddOnStart: ["webchalk-highlightable"]
effectCompositionFrequency: "on-every-play"
immutableConfig: {
composite: "replace";
}
Readonly
composite: "replace"
composeEffect:function
- composeEffect(color?): {
backwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
forwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
} Parameters
- color: string = 'default'
Returns {
backwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
forwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]);
}
backwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[])
- (): ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[] Returns ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]
forwardKeyframesGenerator: (() => ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[])
- (): ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[] Returns ({
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing: string;
offset?: undefined;
} | {
--webchalk-highlight-color?: undefined;
backgroundPositionX: string;
easing?: undefined;
offset: number;
} | {
--webchalk-highlight-color: string;
backgroundPositionX?: undefined;
easing?: undefined;
offset?: undefined;
})[]
Typings for the preset emphasis animation effects that come with the library's emphasis bank.