Skip to content

Commit

Permalink
[Improved] Fixed issue with not generating the default/standard trans…
Browse files Browse the repository at this point in the history
…ition class
  • Loading branch information
nfourtythree committed Mar 21, 2018
1 parent af42a7a commit 5827d32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This plugin exposes options for you to use. Here is the example for adding it to

```js
require('tailwindcss-transition')({
default: 'all .3s ease',
standard: 'all .3s ease',
transitions: {
'slow': 'all 2s ease',
'normal-in-out-quad': 'all 2s cubic-bezier(0.455, 0.03, 0.515, 0.955)',
Expand All @@ -37,7 +37,7 @@ As per the [tailwind plugin docs](https://tailwindcss.com/docs/plugins/) you are

```js
require('tailwindcss-transition')({
default: 'all .3s ease',
standard: 'all .3s ease',
transitions: {
'slow': 'all 2s ease',
'normal-in-out-quad': 'all 2s cubic-bezier(0.455, 0.03, 0.515, 0.955)',
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function({ standard, transitions, variants }) {
}
}))

if (standard) utilities = _.assignIn(utilities, { [`.${className}`]: { transition: standard } });
if (standard) utilities = _.concat(utilities, { [`.${className}`]: { transition: standard } } );

addUtilities(utilities, variants)
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tailwindcss-transition",
"version": "1.0.3",
"version": "1.0.4",
"description": "Transition utility plugin for tailwindcss framework",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5827d32

Please sign in to comment.