-
-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(preset-wind): themable animation #318
Conversation
✔️ Deploy Preview for ecstatic-mestorf-2e8afd ready! 🔨 Explore the source changes: b27cc6f 🔍 Inspect the deploy log: https://app.netlify.com/sites/ecstatic-mestorf-2e8afd/deploys/61c7ea202e61fa00084f5c04 😎 Browse the preview: https://deploy-preview-318--ecstatic-mestorf-2e8afd.netlify.app/ |
Adding keyframes as record... |
Now we can also configure export default defineConfig({
theme: {
animation: {
keyframes: {
wiggle2: {
'0%,100%': {
transform: 'rotate(-3deg)'
},
'50%': {
transform: 'rotate(30deg)'
}
},
// or
wiggle: '{0%,100% {transform:rotate(-3deg)} 50% {transform:rotate(30deg)}}'
},
durations: {
wiggle2: '1s',
wiggle: '1s'
},
timingFns: {
wiggle2: 'ease-in-out',
wiggle: 'ease-in-out'
}
}
}
}) |
|
This PR adds
animation
entry onTheme
to allow add/modify animate stuff onpreset-wind
.The
keyframes
entry with this PR should be plain string, maybe we can change it to support also object.For example, configuring the animation from the linked issue:
closes #315