diff --git a/src/plugins/components/placeload.ts b/src/plugins/components/placeload.ts index 5893d6b..cd94092 100644 --- a/src/plugins/components/placeload.ts +++ b/src/plugins/components/placeload.ts @@ -28,14 +28,16 @@ export default plugin.withOptions( return { theme: { - keyframes: { - [`${prefix}-placeload`]: { - '0%': { 'background-position': '-468px 0' }, - '100%': { 'background-position': '468px 0' }, + extend: { + keyframes: { + [`${prefix}-placeload`]: { + '0%': { 'background-position': '-468px 0' }, + '100%': { 'background-position': '468px 0' }, + }, + }, + animation: { + [`${prefix}-placeload`]: `${prefix}-placeload 1s linear infinite forwards`, }, - }, - animation: { - [`${prefix}-placeload`]: `${prefix}-placeload 1s linear infinite forwards`, }, }, } diff --git a/src/plugins/components/tooltip.ts b/src/plugins/components/tooltip.ts index 4c1e7d4..8db9f9e 100644 --- a/src/plugins/components/tooltip.ts +++ b/src/plugins/components/tooltip.ts @@ -195,23 +195,25 @@ export default plugin.withOptions( return { theme: { - keyframes: { - [`${prefix}-tooltip-x`]: { - to: { - opacity: '1', - transform: 'translate(-50%, 0)', + extend: { + keyframes: { + [`${prefix}-tooltip-x`]: { + to: { + opacity: '1', + transform: 'translate(-50%, 0)', + }, }, - }, - [`${prefix}-tooltip-y`]: { - to: { - opacity: '1', - transform: 'translate(0, -50%)', + [`${prefix}-tooltip-y`]: { + to: { + opacity: '1', + transform: 'translate(0, -50%)', + }, }, }, - }, - animation: { - [`${prefix}-tooltip-x`]: `${prefix}-tooltip-x 300ms ease-out forwards`, - [`${prefix}-tooltip-y`]: `${prefix}-tooltip-y 300ms ease-out forwards`, + animation: { + [`${prefix}-tooltip-x`]: `${prefix}-tooltip-x 300ms ease-out forwards`, + [`${prefix}-tooltip-y`]: `${prefix}-tooltip-y 300ms ease-out forwards`, + }, }, shurikenUi: { tooltip: defaultTooltipConfig,