![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
tailwindcss-transitions-plugin
Advanced tools
This is a very simple transitions plugin for Tailwind CSS which will add some utility classes.
npm install tailwindcss-transitions-plugin
or
yarn add tailwindcss-transitions-plugin
Add the following code to your tailwind.config.js
file
plugins: [
require('tailwindcss-transitions-plugin')
]
The plugin will generate a set of classes for you by default. The current classes will have the following format:
Class name: .transition-{value}
CSS Prop: transition-property
Class name: .transition-speed-{value}
CSS Prop: transition-duration
Class name: .transition-origin-{value}
CSS Prop: tranform-origin-{value}
Class name: .transition-timing-function-{value}
CSS Prop: transition-timing-function
In order to override the defaults, set the following properties inside your main tailwind.config.js
object that is being exported. Feel free to completely ovewrride and/or add new values, they will be processed by the plugin.
// Generated Ex: transition-background-color, transition-box-shadow
transitionProperties: ['background-color', 'transform', 'box-shadow'],
// Generated Ex: transition-speed-slow
transitionSpeeds: {
slow: '200ms',
normal: '150ms',
fast: '100ms'
},
// Generated Ex: transition-origin-tl
transitionOrigins: {
t: 'top',
r: 'right',
b: 'bottom',
l: 'left',
tl: 'top left',
tr: 'top right',
bl: 'bottom left',
br: 'bottom right'
},
// Generated ex: transition-function-cubic
transitionTimingFunctions: {
cubic: 'cubic-bezier(0.4, 0, 0.2, 1)'
},
Now apply to the element you're animating.
<button class="transition-background-color transition-speed-slow transition-function-cubic">Has Transitions</button>
That's it :)
PRs welcome
FAQs
TailwindCSS plugin that adds transition classes
The npm package tailwindcss-transitions-plugin receives a total of 1 weekly downloads. As such, tailwindcss-transitions-plugin popularity was classified as not popular.
We found that tailwindcss-transitions-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.