Skip to content

Commit

Permalink
feat: add fadeIn animation
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 17, 2018
1 parent 7dc466d commit 9de1af8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions addon/animate/fadeIn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

exports.addon = function (renderer) {
if (process.env.NODE_ENV !== 'production') {
require('../__dev__/warnOnMissingDependencies')('animate', renderer, ['keyframes']);
}

renderer.put('', {
'@keyframes fadeIn': {
from: {
opacity: 0,
},
to: {
opacity: 1,
}
},

'.fadeIn': {
animationName: 'fadeIn',
}
});
};

0 comments on commit 9de1af8

Please sign in to comment.