mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-14 09:44:21 +01:00
13 lines
365 B
TypeScript
13 lines
365 B
TypeScript
export function ensureKeyframes() {
|
|
if (!(window as any).__rough_notation_keyframe_styles) {
|
|
const style = (window as any).__rough_notation_keyframe_styles = document.createElement('style');
|
|
style.textContent = `
|
|
@keyframes rough-notation-dash {
|
|
to {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
`;
|
|
document.head.appendChild(style);
|
|
}
|
|
} |