Skip to content

Commit

Permalink
chore: add property
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Nov 15, 2024
1 parent ca84392 commit ab0b768
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { Theme } from '@unocss/preset-mini'
import { definePreset } from 'unocss'

export const presetMagicss = definePreset<Theme>(() => {
const property = { 'animation-fill-mode': 'both' }

return {
name: 'unocss-preset-magicss',
theme: {
Expand Down Expand Up @@ -73,6 +75,73 @@ export const presetMagicss = definePreset<Theme>(() => {
'tin-up-in': '{0%{opacity:0;-webkit-transform:scale(1,1)translateY(-900%);transform:scale(1,1)translateY(-900%);}50%,70%,90%{opacity:1;-webkit-transform:scale(1.1,1.1)translateY(0);transform:scale(1.1,1.1)translateY(0);}60%,80%,100%{opacity:1;-webkit-transform:scale(1,1)translateY(0);transform:scale(1,1)translateY(0);}}',
'tin-up-out': '{0%,20%,40%,50%{opacity:1;-webkit-transform:scale(1,1)translateY(0);transform:scale(1,1)translateY(0);}10%,30%{opacity:1;-webkit-transform:scale(1.1,1.1)translateY(0);transform:scale(1.1,1.1)translateY(0);}100%{opacity:0;-webkit-transform:scale(1,1)translateY(-900%);transform:scale(1,1)translateY(-900%);}}',
},
properties: {
'puff-in': property,
'puff-out': property,
'vanish-in': property,
'vanish-out': property,
'boing-in-up': property,
'boing-out-down': property,
'bomb-left-out': property,
'bomb-right-out': property,
'magic': property,
'swap': property,
'twister-in-down': property,
'twister-in-up': property,
'foolish-in': property,
'foolish-out': property,
'hole-out': property,
'swash-in': property,
'swash-out': property,
'space-in-down': property,
'space-in-left': property,
'space-in-right': property,
'space-in-up': property,
'space-out-down': property,
'space-out-left': property,
'space-out-right': property,
'space-out-up': property,
'perspective-down': property,
'perspective-down-return': property,
'perspective-left': property,
'perspective-left-return': property,
'perspective-right': property,
'perspective-right-return': property,
'perspective-up': property,
'perspective-up-return': property,
'rotate-down': property,
'rotate-left': property,
'rotate-right': property,
'rotate-up': property,
'slide-down': property,
'slide-down-return': property,
'slide-left': property,
'slide-left-return': property,
'slide-right': property,
'slide-right-return': property,
'slide-up': property,
'slide-up-return': property,
'open-down-left': property,
'open-down-left-return': property,
'open-down-right': property,
'open-down-right-return': property,
'open-up-left': property,
'open-up-left-return': property,
'open-up-right': property,
'open-up-right-return': property,
'open-down-left-out': property,
'open-down-right-out': property,
'open-up-left-out': property,
'open-up-right-out': property,
'tin-down-in': property,
'tin-down-out': property,
'tin-left-in': property,
'tin-left-out': property,
'tin-right-in': property,
'tin-right-out': property,
'tin-up-in': property,
'tin-up-out': property,
},
category: {
'puff-in': 'Bling',
'puff-out': 'Bling',
Expand Down

0 comments on commit ab0b768

Please sign in to comment.